is it not something like tab or tabindex what u want to use?
i neither know the right attribute anymore. But i thought it was tabindex. mcvdmvs
mick@nederland.net
This code is to submit an ASP form and although I'm very new to ASP, I was sure that the first 2 replies are correct.
That is either the submit button should be tied to the return by default as it is the only form (and only submit button) on the page or failing that, if the script refers to the text field by 'name', that should cause the enter key to work for submision.
As for the tab order, I did think that might be to do with it but I tried setting that and no luck (although the syntax may have been wrong).
I have found a strange IF statement in the ASP though which i am looking at the momment. I have a feeling it is stopping the default actions for some reason......
I have got this working now, and it was the ASP.
I should put this in the ASP forum, but since it is the solution to this i will leave it here.
The replies above are correct and work fine now that the ASP is fixed.
The ASP form is for a customised version of the search that is included with IIS 5 / Index server, and there was a line saying
if Request.Form("searchit" = "Go" then
this makes the submit action only true if the button named 'searchit' is pressed.
I commented out this line and it's corressponding 'end if' statement and the return key now functions, and the actual search isn't affected.
Anyone who would like the full source code please email me,
jez@smokingbear.com
And thanks again.
Oh and as for the tab order I haven't gone back to that yet as with only one text field and one button, tabbing gets you where you want to go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.