Javascript form object problem[SOLVED]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
SpiderMonkey
Forum Commoner
Posts: 85
Joined: Fri May 05, 2006 4:48 am

Javascript form object problem[SOLVED]

Post 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...
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

Re: Javascript form object problem[SOLVED]

Post 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
Post Reply