Submit Multiple Forms w/One Button (Safari Issue)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dnleeb
    New Member
    • Aug 2007
    • 4

    Submit Multiple Forms w/One Button (Safari Issue)

    Hi there,

    I'm trying to submit an Update form and an email form on one click. I'm using

    <script type="text/javascript">
    function submitallforms( ) {
    setTimeout('doc ument.form1.sub mit()',100);
    setTimeout('doc ument.form2.sub mit()',200);
    }
    </script>

    and

    <input type="image" src="images/..."onClick="su bmitallforms(); ">

    And this is working great in all browsers except Safari, which will only submit the form that is listed first.

    Thanks

    Dan
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Dan,

    I didn't even know you could submit more than one form at a time. So i guess you want two different scripts to handle the two forms. Have you thought of submitting one to a different window? Or combining the forms and handling them one after another in the same script?

    Jared

    Comment

    Working...