|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
using javascript to submit forms
Hi, can someone explain why the following line of code does not work. There is no error generating the page what so ever the link just does not work when clicked.
<a href="javascript:document.frmProduct<%=form_no %>.submit()">view %> I am using ASP to generate a unique form name, hence the frmProduct<%=form_no %> part, this works fine btw. I have even tried referring to the form the following way - still without any luck :document.forms[<%=form_no %>].submit() |
|
#2
|
||||
|
||||
|
Hi
Check that you do not have a submit button called "Submit" in the form as this will stop .submit() from working MK |
|
#3
|
|||
|
|||
|
Hi selwonk, thanks for that bit of info that was exactly what was causing the problem. I had the submit button there for testing purposes.
Again thanks, you are the man! ![]() |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > using javascript to submit forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|