469,613 Members | 1,262 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

document.form.submit() not working in Fire fox

Hi All,
I have a form like this
<form id="frmworld" name ="frm" method=POST action "https://select.worldpay.com/wcc/purchase" >

<input type="hidden" name="instId" value="135242">
<input type=hidden name="cartId" id ="cartId" value="" runat=server />
...............
...........
</form>

I submit this form with the help of javascript like this
<script language='javascript'>document.frmworld.submit()</script>
It works fine in IE but does not work in firfox.
Please Help me
Jan 13 '07 #1
2 6220
acoder
16,027 Expert Mod 8TB
The submit() function should be activated by the user, e.g. by clicking on a button or a link. When the user clicks, a function should be called which activates the submit. You can call the function like so
Expand|Select|Wrap|Line Numbers
  1. function submitForm() { document.frmworld.submit(); }
This may just be a typo, but there is an = missing between action and the string for the action page.

Why do you want to submit the form using javascript to a worldpay page?
Jan 13 '07 #2
vituko
48
document.getElementById ('frmworld').submit() ;
Jan 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by terence.parker | last post: by
1 post views Thread by mike | last post: by
4 posts views Thread by Tim Mackey | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.