onSubmit from Javascript Error

J

Josh

I'm trying to trigger an onSubmit function from a form using
Javascript. As far as I know the only way to do this is to hide a
submit button and then use 'button'.click() on the submit button to
fire the onSubmit event. Unfortunately I'm getting a permissions
Javascript error, has anyone experienced this before and fixed it?

Thanks.
 
L

Lee

Josh said:
I'm trying to trigger an onSubmit function from a form using
Javascript. As far as I know the only way to do this is to hide a
submit button and then use 'button'.click() on the submit button to
fire the onSubmit event. Unfortunately I'm getting a permissions
Javascript error, has anyone experienced this before and fixed it?


Is the submit button in the same page as your script?


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top