|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How Can I Replace a Form's Submit Button with an Image
<i><b>Originally posted by : Dan Krause (dan@centech-group.com)</b></i><br />I would like to be able to click on an image and have it submit my form. I'm doing a intranet and using vbscript. I know to use the image onclick event to trap the click but I don't know how to call the submit from there. Thanks for any help.<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : C.Venkateshwar rao (venkat_cit@yahoo.com)</b></i><br /><br />Hi..<br /><br />In image onclick write the following code.<br />formname is the give form name by u.<br /> document.formname.method=post/get<br /> document.formname.action="page name where to<br /> submit"<br /> document.formaname.submit<br /><br /><br /><br />ex:<br /><br /> document.form1.mthod="post"<br /> document.form1.action="Add.asp"<br /> document.form1.submit<br /><br /><br />thats all...<br /><br />bye<br /><br /><br />------------<br />Dan Krause at 4/10/2000 2:52:27 PM<br /><br />I would like to be able to click on an image and have it submit my form. I'm doing a intranet and using vbscript. I know to use the image onclick event to trap the click but I don't know how to call the submit from there. Thanks for any help.<br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Dan Krause (dan@centech-group.com)</b></i><br />Thanks. That was exactly what I needed.<br /><br /><br />------------<br />C.Venkateshwar rao at 4/11/2000 1:06:38 AM<br /><br /><br />Hi..<br /><br />In image onclick write the following code.<br />formname is the give form name by u.<br /> document.formname.method=post/get<br /> document.formname.action="page name where to<br /> submit"<br /> document.formaname.submit<br /><br /><br /><br />ex:<br /><br /> document.form1.mthod="post"<br /> document.form1.action="Add.asp"<br /> document.form1.submit<br /><br /><br />thats all...<br /><br />bye<br /><br /><br />------------<br />Dan Krause at 4/10/2000 2:52:27 PM<br /><br />I would like to be able to click on an image and have it submit my form. I'm doing a intranet and using vbscript. I know to use the image onclick event to trap the click but I don't know how to call the submit from there. Thanks for any help.<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > How Can I Replace a Form's Submit Button with an Image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|