loonaticmedia
05-09-2003, 11:26 AM
hi
is it possible to submit a form without clicking a submit button?
best regards
chris
is it possible to submit a form without clicking a submit button?
best regards
chris
|
Click to See Complete Forum and Search --> : is it possible to submit a form without button loonaticmedia 05-09-2003, 11:26 AM hi is it possible to submit a form without clicking a submit button? best regards chris gnanesh 05-09-2003, 11:33 AM yes..you can capture the enter key code and call the function which you need to search this is what you need to include in your <body> tag for ENTER key <body onkeypress="if(event.keyCode=='13'){search();}" ) this will call your search function when the user clicks on the ENTER key i.e. user can hit "ENTER" key after entering some data in to the search field thanks gnanesh rav 05-09-2003, 12:52 PM You can also use document.formname.submit() or something like it. gnanesh 05-09-2003, 12:55 PM hi rav Please read " loonaticmedia " question:- he says is it possible to submit a button without clicking submit button!! thanks gnanesh rav 05-09-2003, 12:59 PM .Submit() is a command.. not a button... You can call the command from some JS function to submit the form. So, this doesn't require you to click a button. Charles 05-09-2003, 01:06 PM There are a few things of which you need to be careful when you use it. See http://forums.webdeveloper.com/showthread.php?s=&threadid=9349. brendandonhue 05-09-2003, 01:45 PM You can also use an image to submit a form. <input type="image" src="submit.gif"> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |