Page 1 of 1

Javascript form object problem[SOLVED]

Posted: Tue Jun 24, 2008 4:52 am
by SpiderMonkey
Is there any reason why a form object won't allow you to submit() it? I have sent the object in question to alert() and it claims to be an HTMLFormElement object, but javascript keeps insisting the method submit() does not exist.

edit: Just figured it out. Some nonce named one of the fields 'submit' and javascript got confused. I've got to go and inflict some violence on my fellow coders now...

Re: Javascript form object problem[SOLVED]

Posted: Mon Sep 08, 2008 8:51 am
by adroit
SpiderMonkey wrote:Is there any reason why a form object won't allow you to submit() it? I have sent the object in question to alert() and it claims to be an HTMLFormElement object, but javascript keeps insisting the method submit() does not exist.

edit: Just figured it out. Some nonce named one of the fields 'submit' and javascript got confused. I've got to go and inflict some violence on my fellow coders now...


Hi SpiderMonkey,

Is it possible for you to paste your code here.

Regards,
Adroit
http://www.adroitsoftware.org