[pmwiki-users] Clicking Go on search searches for the word Search

wiki question wiki_questions at yahoo.com
Mon Mar 10 13:23:33 CDT 2008

This works -- Thanks again!!

Hans <design5 at softflow.co.uk> wrote:  PS:

perhaps even better replace in searchbox2.php

if ($focus) $out .= "
onfocus=\"preval=this.value; this.value=''\" onblur=\"this.value=preval\" ";


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.


Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080310/574164e4/attachment.html 

More information about the pmwiki-users mailing list