B
bizt
Hi,
First let me point out I have googled this and also must have done
this operation a dozen times (altho a few years ago) but for some
reason I cant get a form to submit using javascript .. Ive tried both
FF and IE. All the pages that I look at all say the same way which is
the way Im sure Ive done it before:
My code is:
(javascript function)
function DeleteImages (oForm) {
alert('submitting form') // this works ...
oForm.submit() // this doesnt!!
}
(html button)
<input type="button" name="submit" value="Delete Selected"
onclick="DeleteImages(this.form);" />
Maybe just a sanity check is needed but I cant see what the problem
is. Where am I going wrong? I know that the function is being called
because the alert message is executing but the form isnt submitting.
Cheers
Burnsy
First let me point out I have googled this and also must have done
this operation a dozen times (altho a few years ago) but for some
reason I cant get a form to submit using javascript .. Ive tried both
FF and IE. All the pages that I look at all say the same way which is
the way Im sure Ive done it before:
My code is:
(javascript function)
function DeleteImages (oForm) {
alert('submitting form') // this works ...
oForm.submit() // this doesnt!!
}
(html button)
<input type="button" name="submit" value="Delete Selected"
onclick="DeleteImages(this.form);" />
Maybe just a sanity check is needed but I cant see what the problem
is. Where am I going wrong? I know that the function is being called
because the alert message is executing but the form isnt submitting.
Cheers
Burnsy