<div>That didn't appear to work:</div> <div> </div> <div>Here is what I have:</div> <div> </div> <div><?php if (!defined('PmWiki')) exit();</div> <div>/* alternative searchbox function & markup, with onfocus and onblur events<BR> fully capable of pmwiki's advanced pagelist and search results functions.<BR>*/<BR>## versiondate: 2006-11-25</div> <div>## redefine searchbox format:<BR>function SearchBox2($pagename, $opt) {<BR> global $SearchBoxOpt, $SearchQuery, $EnablePathInfo;<BR> SDVA($SearchBoxOpt, array(<BR> 'size' => '20',<BR> 'label' => FmtPageName('$[Search]', $pagename),<BR> 'value' => str_replace("'", "&#039;", $SearchQuery)));<BR> $opt = array_merge((array)$SearchBoxOpt, (array)$opt);<BR> $focus = $opt['focus'];<BR> $opt['action'] = 'search';<BR> if($opt['target']) $target = MakePageName($pagename,
$opt['target']);<BR> else $target = $pagename;<BR> $out = FmtPageName(" class='wikisearch' action='\$PageUrl' method='get'>", $target);<BR> $opt['n'] = IsEnabled($EnablePathInfo, 0) ? '' : $target;<BR> $out .= "<BR> <input type='text' name='q' value='{$opt['value']}' class='inputbox searchbox' size='{$opt['size']}' ";<BR><STRONG> if ($focus) $out .= "<BR> onfocus=\"preval=this.value; this.value=''\" ";</STRONG><BR> $out .= " /><BR> <input type='submit' class='inputbutton searchbutton' value='{$opt['label']}' />";<BR> foreach($opt as $k => $v) {<BR> if ($v == '' || is_array($v)) continue;<BR> if ($k=='q' || $k=='label' || $k=='value' || $k=='size') continue;<BR> $k = str_replace("'", "&#039;", $k);<BR> $v = str_replace("'", "&#039;", $v);<BR> $out .= "<BR> <input type='hidden' name='$k'
value='$v' />";<BR> }<BR> return "<form ".Keep($out)."<BR> </form>";<BR>}<BR>Markup('searchbox', '>links',<BR> '/\\(:searchbox(<A href="file://\\s.*?)?:\\)/e'">\\s.*?)?:\\)/e'</A>,<BR> "SearchBox2(\$pagename, ParseArgs(PSS('$1')))")<BR><BR><BR><B><I>Hans <design5@softflow.co.uk></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Monday, March 10, 2008, 5:51:10 PM, wiki question wrote:<BR><BR>> When I change the following line in skin-fixflow.tmpl<BR>> <!--markup:(:searchbox label=$[Go] value=$[Search] focus=true:)--><BR><BR>> to <BR>> <BR>> <!--markup:(:searchbox label=$[Go] value=$[Search] )--><BR><BR>> It stops replacing my search value with the word "Search" when I click "Go"<BR>> but I have to delete the word search when performing a seach --<BR>> which makes sense based upon your explanation.<BR><BR>The issue is with the
focus setting. Try instead of your change above<BR>this:<BR><BR>change in searchbox2.php this:<BR><BR>if ($focus) $out .= "<BR>onfocus=\"preval=this.value; this.value=''\" onblur=\"this.value=preval\" ";<BR><BR>to this:<BR><BR>if ($focus) $out .= "<BR>onfocus=\"preval=this.value; this.value=''\" ";<BR><BR><BR>(removing onblur=\"this.value=preval\")<BR><BR>I think this is a bug in FixFlow. I removed it for the Triad skin,<BR>but must have forgotten to remove it for FixFlow.<BR><BR>~Hans<BR><BR></BLOCKQUOTE><BR><p> 
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>