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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arif Bangash
    New Member
    • Jan 2007
    • 1

    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='javas cript'>document .frmworld.submi t()</script>
    It works fine in IE but does not work in firfox.
    Please Help me
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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
    Code:
    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?

    Comment

    • vituko
      New Member
      • Dec 2006
      • 48

      #3
      document.getEle mentById ('frmworld').su bmit() ;

      Comment

      Working...