Submit is not a function
chris (2005-11-30 14:34:46)
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter:
http://twitter.com/planet_guru
thankz
i saved a lot of time by you.
Thx a lot,
I'll remember not to name my button submit :(.
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
Bang on ... the default code provided by paypal has a submit button named submit. Just rename it to submit2 if you want to keep it.
Thanks for posting this; very helpful.
This information sir, has helped me significantly. "theButtonFormerlyKnownAsSubmit" now no longer inspires me to destroy property. Hah, wasted about 4 hours on this before I finally googled it. :(
You save me a lot of time. Thanks!
You saved me from what probably would have been quite a bit of frustration. Thanks.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
It sure started to annoy me... Tnx!
Ya buddy its working thanks for the help...
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
You saved lots of time for me.
Thanks a lot for putting the time to write this note. It saved me a lot of time as I have tried so many things to figure it out and I wasn't sure what was wrong. Thanks again boss.
thanks a lot fot posting this.
i think i would be spending some l-o-o-ng hours otherwise.
you saved my day :)
You are the best!!!
Grettings from Catalonia
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
thanks for the solution .... Nice and very valuable hack...
Thank you Christo.
How great to get some straight-forward help from someone I've never met.
If only all coding help was this clear.
Thanks...It really helped...
We were stuck for hours wid this issue
The most useful info I've found in hours...
Thanks a lot...
Saved my life. Thank you!
Execellent. Thanks. Save me a bunch of headache!
Thank you. You saved me a LOT of time.
Thanks alot!
I spent 3 hours trying to figure out why my form is not submitting.
Your post helped. :)
You have gotten a lot of appreciations and you deserve mine too :) - Thanks man !:)
Just two words: GREAT THANKS!
dude what a lifesaver. feel like a lamebrain :P
Just saved me a lot of time too, thank you.
I can't believe I never stumbled onto this problem before. Thanks your post saved me a lot of stress!
LOL Yeh I named my button submit. That's so funny. I wouldn't have figured this out unless you posted this. Thanks much pal! :)
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
thankyou thankyou thankyou!
Tks so much, i have 15 minutes with the error 'submit is not a function', because i call a button in the name 'submit'
I'll never do again
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
If the whole of the Internet was this concise and helpful I do believe we would have achieved absolute harmony in the universe
Wow! you just saved my head from exploding! I really had a hard time figuring out why my form wasn't submitting!
Spent a whole day trying to figure this one out, great help thanks :)
BIG THANKS! I spent two hours trying to fix the same problem!!!
Saved me soms time!
Thanks
Christo,
Thanks a bunch for saving time for me.
-Hemant
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
Thanks a Lot
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
Thanks saved me time
Thanks, that saved me a lot of time.
And I came up with something else:
I like my submit and want to keep it. I also have a 'onsubmit' hanging on the form wich does not fire if I do it your way. So instead of changing the name 'submit' I used onchange="submit.click(). I wouldn't have thought of that if it weren't for your post
Thanks a lot!!!!! saved a lot of time
thanks.
this was actually starting to send me mad
you saved my live thank you
Thank you for your post here!
You should pay attention to the ID of your button too. The same error will pop if you set your button ID to 'submit'.
Took me little time to figure it out after reading your post and removing my 'name's on the buttons.
thanks dude.... i have been trying this since a day....
Thanks very much for your post. Much appreciated.
Thanks very much for your post. Much appreciated.really helped me
Thanks
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
Thnx man saved ma time :)
I registered on this site specifically to say thanks: "Thanks".
THanks!!!!!
This means you have a function trying to call the form's submit() method, but you also have a button which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that button.
To solve the problem, simply change the name of the button so that name="moo" (or something). Your submit() call in your javascript function/method will now work.
It took me a while of hacking javascript and html to work that one out - hopefully this post will mean it only takes you a minute..
christo
follow me on twitter: http://twitter.com/planet_guru
Hi ,
Very very thank u for your information.
By,
Velmurugan.c
Hi ,
Very very thank u for your information.
By,
Velmurugan.c
you saved my life! domo arigato gozaimas!
Thank you for the hint! It saved us some time.
Ketan Kulkarni
wow this saves my lots of time, i am in this field since last three years but i didn't know that :)
Can't thank you enough man.
I don't have words to thank you for this very simple, but MOST valuable recommendation. I was working for few days to resolve this issue on one of my websites and after seeing your comment, I could only bang my head on the table.. Why I couldn't check your post earlier... I would have saved couple of days if I went through this earlier :S
Very grateful to you man.... thanks a lot.