Forum Moderators: open
However, I don't like having to load a new page just to do a simple search; an advanced search? yes, but simple search? no.
I am thinking that a good compromise, and one I would like to test, might be to have a clickable link that brings up a dialog box which then sends the entered search term/s to the search page as a querystring. Similar to the Google Search link you can load on the IE Links bar.
As I am not a Javascript person, could somebody suggest how that could be done?
Onya
Woz
<script>
function showSearch()
{
document.getElementById('search').style.visibility = 'visible';
document.getElementById('search').style.top = event.clientY;
document.getElementById('search').style.left = event.clientX;
}
</script><body>
<a href="javascript:;" onclick="javascript:showSearch()">search</a>
<div id="search" style="position:absolute;visibility:hidden;background-color:ivory;border:#cc6600 1px solid;padding:10px"><input type="text" name="search"> <input type="submit" value="go!"></div>
</body>
It wouldn't work in NN4 though I'm sure one of our cross-browser peeps could sort that.
I like the idea of making a search box invisible until a link is clicked, rather than making it load an entirely new page. Although we do not explicitly support NN4 on the site in question (layouts may be off, etc,) we wouldn't want the poor browser to be completely dysfunctional on every page.
Another thought that occurs to me here, thanks to the comments on this thread, is that serving the regular user on this site has different requirements than serving the first time visitor. The site will have two levels of registered access, and those who are signed up deserve easy access to the search function.
The new visitor is a different critter, one who we want to entice into sticking around and coming back and registering. The site search engine will be relatively limited in what it can return to a guest user in any case.