Hey everyone I have a real simple (it seems) situation. I have my page which has a couple forms on it each having their own submit buttons.
please see my test page here:
<!-- m --><a class="postlink" href="http://www16.brinkster.com/shu745/shop/index.asp">http://www16.brinkster.com/shu745/shop/index.asp</a><!-- m -->
my problem is with the search feature. the search form simply consists of the search field and search button. the thing is that it works fine if you enter a value in the search field and click the search button but if you enter a value in the search field and just hit 'enter' on the keyboard, it doesn't detect that you have clicked the search button.
you can see that the page submits but for some reason it is not submitting using the search button....very confusing! maybe since i have other buttons on my page, it doesn't know which to use...? i'm not sure.
is there a way i can focus on the search button when i focus in the search field? i thought that is how it worked...? i tried using:
<form name="frmsearch" method=...etc....>
<input type="text" name="searchfield" onFocus"this.document.frmsearch.searchbutton.focus();">
<input type="submit" name="searchbutton" value=http://www.webdeveloper.com/forum/archive/index.php/"search">
</form>
but that doesn't let you type anything in the search field obviously...hehe... then i tried using onChange but that only works if you enter a value in the searchfield then mouse click outside of the field then hit 'enter' on keyboard...
is there a way i can get this to work?
any help is appreciated...
thanx in advance...
-Shu
please see my test page here:
<!-- m --><a class="postlink" href="http://www16.brinkster.com/shu745/shop/index.asp">http://www16.brinkster.com/shu745/shop/index.asp</a><!-- m -->
my problem is with the search feature. the search form simply consists of the search field and search button. the thing is that it works fine if you enter a value in the search field and click the search button but if you enter a value in the search field and just hit 'enter' on the keyboard, it doesn't detect that you have clicked the search button.
you can see that the page submits but for some reason it is not submitting using the search button....very confusing! maybe since i have other buttons on my page, it doesn't know which to use...? i'm not sure.
is there a way i can focus on the search button when i focus in the search field? i thought that is how it worked...? i tried using:
<form name="frmsearch" method=...etc....>
<input type="text" name="searchfield" onFocus"this.document.frmsearch.searchbutton.focus();">
<input type="submit" name="searchbutton" value=http://www.webdeveloper.com/forum/archive/index.php/"search">
</form>
but that doesn't let you type anything in the search field obviously...hehe... then i tried using onChange but that only works if you enter a value in the searchfield then mouse click outside of the field then hit 'enter' on keyboard...
is there a way i can get this to work?
any help is appreciated...
thanx in advance...
-Shu