Helpful Information
 
 
Category: JavaScript Development
Problems with forms and javascript

Hello there!
I have a problem! Here goes...
I want to submit a form like this:
-------------------------------------------
<FORM ACTION="some.script" METHOD="post" name="SubmitLink">
<input type="hidden" name="Action" value="AddLink">
<a class="mymaster" href="javascript:document.forms.SubmitLink.submit();">submit</a>
</form>
-------------------------------------------
But when i do so, I get this error:
-------------------------------------------
Error: Object does not support this property or method.

What do I do wrong?
NB: I know that this properbly only works in IE...

Have you tried document.form[0].submit();?

jaix...

I found out!! I have made a hidden fiele with the name: "submit"

but thanks anyway
http://www.devshed.com/Talk/Forums/smile.gif










privacy (GDPR)