PDA

View Full Version : need html help re keyword search


BarryC
May-15-2008, 06:29 AM
hi all,

i've implemented the keyword search box documented in the customization FAQ...the html code supplied in the FAQ that goes in the header box follows:

<html>
<!-- Site Keyword Search -->
<form name="suggest" action="/keyword/jump.mg">
<div id="keywordSearch">search
<input autocomplete="off" maxLength=256 size=25 name="Keyword" value="" onfocus="InstallAC(document.suggest,document.suggest.Keywor d,document.suggest.submitButton,'suggestRPC.mg','e n')" />
<input type=submit value="keyword search" name="submitButton" class="buttons" />
******** src="/include/js/keywordsuggest.js"></********></div>
</form>
<!-- End Site Keyword Search -->
</html>

am not an html person, but am wondering if the following change is simple or not
the above html includes a "suggestion feature" that suggests keywords to the user as the user is typing...it appears that these suggestions come from the entire smugmug site's keywords list...can the html be changed so that (a) it only suggests keywords from my site or (b) it doesn't suggest keywords at all?

thanks,
barry

BarryC
May-15-2008, 06:49 AM
yup, am replying to my own post :)

it seems that the html in the FAQ contains a small typo that results in a cosmetic bug (a ">" appearing to the right of the search box)
is hard for me to show you the typo, because this message is html too, and as seen in my original post, the code i pasted got garbled (i should have previewed)

anyway, the error is in the 4th line from the end
it contains ">><"
change that to "><" and all is well!

hope that helps anyone else that wants to implement a keyword search box

now, back to my original post, does anyone know how to change the FAQ code's suggest feature?

thanks,
barry