Hi guys,
I’ve problem since I purchased the SC, how to fix this Enter to submit on login form.
I’ve to enter twice to submit the form…
thanks
ahmer
Hi guys,
I’ve problem since I purchased the SC, how to fix this Enter to submit on login form.
I’ve to enter twice to submit the form…
thanks
ahmer
Re: login form, Enter to submit not working {HELP}
I not sure I understand your question …
Do you have to hit the submit button twice to get it to work, or … do you have to hit the enter key twice to get it to the submit button to work, or ???
Regards,
Scott.
Re: login form, Enter to submit not working {HELP}
thanks Mr. Martin,
the situation is after fill the login name and password I’ve to press tab to move the cursor on submit button and than press enter to submit or by the mouse I"ve to click on submit button, what I want when user type the password and hit enter it should submit do not need to press tab or 2 time enter.
enter key works like tab …
hope i explain…
thanks
ahmer
Re: login form, Enter to submit not working {HELP}
Have a look at:
http://www.scriptcase.net/forum_en_us/index.php?topic=4720.msg12148#msg12148
Regards,
Scott.
Re: login form, Enter to submit not working {HELP}
thanks Martin,
I tried but nothing happen, would you please guide me little further…
thanks
ahmer
Re: login form, Enter to submit not working {HELP}
You will need to be a little bit more detailed…
Where did you add the JS code?
What are the names of your input fields?
Do you get an error in the console when you run the app?
Are you using a control form, or?
Regards,
Scott.
Re: login form, Enter to submit not working {HELP}
It worked for me.
Here’s is what I did. I put the code into the Javascript / Form / onLoad event . My login fields are called login and password.
Code in the event :
function submitenter(e) {
var keycode;
if (window.event) keycode = window.event.keyCode; // IE
else keycode = e.which; // FF
if (keycode == 13) {
document.F1.submit();
return false;
} else return true;
}
document.F1.login.onkeypress=submitenter;
document.F1.password.onkeypress=submitenter;
if (document.F1.login.value == ‘’) {
document.F1.username.focus();
} else {
document.F1.password.focus();
}
Gidday from Sydney
Paul
Re: login form, Enter to submit not working {HELP}
awesome,
working like charm
thanks
Re: login form, Enter to submit not working {HELP}
its not working with IE9
any suggestion
thanks