[pmwiki-users] Clicking Go on search searches for the word Search
Hans
design5 at softflow.co.uk
Mon Mar 10 13:14:41 CDT 2008
PS:
perhaps even better replace in searchbox2.php
if ($focus) $out .= "
onfocus=\"preval=this.value; this.value=''\" onblur=\"this.value=preval\" ";
with
if ($focus) $out .= "
onfocus=\"if(this.value=='{$opt['value']}') this.value=''\" onblur=\"if(this.value=='') this.value='{$opt['value']}'\" ";
That way when the focus is taken away from the box (by clicking
somewhere else) the 'Search' will be put back into the box if the box
is empty, but if anything is entered in the box it wil remain and
thus posted as the search query term.
~Hans
More information about the pmwiki-users
mailing list