So maybe while we're at it a title attribute could be added to the search box with an explanation of what the box does.callumacrae wrote:Also, with "Search" it isn't too clear what the box does.
Placeholder for search box.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Placeholder for search box.
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: Placeholder for search box.
That was supposed to say "without". Fixing now - I think it's clear enough when the placeholder is displayed.
- Dragosvr92
- Registered User
- Posts: 624
- Joined: Tue May 31, 2011 12:08 pm
- Location: Romania
- Contact:
Re: Placeholder for search box.
3.1.0 already has a title attribute, 3.0.10 doesnt...
Code: Select all
<input type="text" onblur="if(this.value=='')this.value='Search…';" onclick="if(this.value=='Search…')this.value='';" value="Search…" class="inputbox search" title="Search for keywords" maxlength="128" id="keywords" name="keywords">
Previous user: TheKiller
Avatar on Memberlist 1.0.3
Avatar on Memberlist 1.0.3
Re: Placeholder for search box.
From a functional perspective this is an unnecessary neat UI addition, so I think all JS can be dropped entirely in favour of the new attribute. There's no need for a fallback here.
Re: Placeholder for search box.
I'm preparing this change, and want to know: Is someone working on this?
- Dragosvr92
- Registered User
- Posts: 624
- Joined: Tue May 31, 2011 12:08 pm
- Location: Romania
- Contact:
Re: Placeholder for search box.
This will be only added in Ascraeus, right?
Previous user: TheKiller
Avatar on Memberlist 1.0.3
Avatar on Memberlist 1.0.3
Re: Placeholder for search box.
Placeholder is an new attribute of HTML5 and only Ascraeus use this doctype, so... the answer is yes.TheKiller wrote:This will be only added in Ascraeus, right?
Re: Placeholder for search box.
*coff* see source code of this page *coff* see the source code of prosilver (in phpBB 3.1-dev).Vinny wrote:Placeholder is an new attribute of HTML5 and only Ascraeus use this doctype, so... the answer is yes.TheKiller wrote:This will be only added in Ascraeus, right?
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: Placeholder for search box.
What?brunoais wrote:*coff* see source code of this page *coff* see the source code of prosilver (in phpBB 3.1-dev).Vinny wrote:Placeholder is an new attribute of HTML5 and only Ascraeus use this doctype, so... the answer is yes.TheKiller wrote:This will be only added in Ascraeus, right?
Re: Placeholder for search box.
^
Sorry mixed up names. AGAIN!
Sorry mixed up names. AGAIN!