Search box on every browser page

I am trying to create a search field and button (actually a link) on every page of a website database. All of my pages “?OpenDocument”, so I am creating the search field using pass through HTML… . I am having trouble getting the search to “go”… the search works if I just key in the URL… I just can’t get it to go from my website pages using the “Go” button/link that I created.

Here is the code for my “Go” button… Go

This is my code for FieldsOk() function…

function FieldsOk() {

document.location=“http://servername/dbname.nsf/$$SearchTemplateDefault?OpenForm&QueryString=”+document.forms[0].query.value

}

I cannot get this to work… I also need it to work when I hit the “Enter” key…

Does anyone have any suggestions for this. I have been searching this forum and Notes 4/5 forum all day…

Thanks!

Subject: Search box on every browser page

Not everything lives here…

http://www.codestore.net/store.nsf/unid/DOMM-4X9LG3?OpenDocument

Subject: RE: Search box on every browser page

Thanks for your help… that is a great site!

I have it working for the most part… I still can’t figure out how to call the function using <a href… but, I am much closer! He uses a button to do the search…

Subject: RE: Search box on every browser page

Just use “javascript:functionName()” in the href. S’easy.