Javascript: form submit is not a function SOLUTION

by troy on October 17, 2009

Working on some rich form in Flash  that integrates in with Aweber via ExternalInterface and javascript, what's odd is worked fine, after updating, ran into that odd error, alerting showed that I was talking to the form, but calling submit function failed.

Solution was to rename the submit button in that form to submit2 as javascript was getting confused.  I found that great solution on this post.

Apparently it's quite common for services to names the submit button 'submit'

Here's a good protocol to follow
1) make sure that the html works given to you by the provider works with your various user id as provided
2) create a dummy function that calls that form via javascript, if you get the above error change the name of the javascript.
3) then add the rich validation or in flash call that function with ExternalInterface.

Leave a Comment

Previous post:

Next post: