All,
I am new to web designing and I have no clue on how to place the cursor in the search text field on the default search form when opened. Any help would be appreciated.
Thanks,
All,
I am new to web designing and I have no clue on how to place the cursor in the search text field on the default search form when opened. Any help would be appreciated.
Thanks,
Subject: Default Web Search
Here’s a simple javascript to put in pass-thru html at the top of your form.
You will also need to call this script in the onLoad event on your form like this…
formFocus();
Finally, your SOMEFIELD field should have an ID name assigned to it. Select the field, get properties and enter SOMEFIELD for the ID in the html tab.
Subject: RE: Default Web Search
I am sure that this will work, but my problem is I have no ideal where the web search form is located within my databases. The forms I created are accessible but where is the search web view form located. It appears for all databases regardless of the views being searched.
Thanks
Subject: RE: Default Web Search
It’s a hard-coded HTML page found in the data/domino/template directory; either search.htm or srchbar.htm. You can provide your own search form, though.
Subject: RE: Default Web Search
I don’t mind the default form. Is there anyway I can hard-code the location of the cursor when the form is opened? Ex: into the search field.
Subject: RE: Default Web Search
You can add JavaScript to the template file to call focus() on the appropriate field, but be aware that your changes will probably be nuked every time you update the server – you’d need to add the “add JS” process to your upgrade SOP documentation (if you have any – and that’s a good idea in any case).
Subject: RE: Default Web Search
Thanks.
Yes we have SOPs, and I need to update mine and add this new function. Thanks for the reminder. :~)