Click to See Complete Forum and Search --> : Using javascript to submit form


graeder
10-04-2003, 09:17 PM
I'm trying to use document.formName.submit() to submit a hidden form, but it doesn;t seem to be working. The action posts the page to itself, and the method is "post." The hidden field values are being populated, but when I try to submit, I don't think it's doing anything because 1. I have an onSubmit event handler with an alert message in the form tag, and it doesn't get fired, and 2. When I request the parameters from the post, they are null. Any advice?

Exuro
10-05-2003, 12:17 AM
I would say that there's probably an error somewhere in your onsubmit code... But, I can't be sure since you haven't posted a link or a code fragment or anything *hint hint*.