472,122 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

Submit Multiple Forms w/One Button (Safari Issue)

4
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('document.form1.submit()',100);
setTimeout('document.form2.submit()',200);
}
</script>

and

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

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

Thanks

Dan
Sep 19 '07 #1
1 2563
jhardman
3,406 Expert 2GB
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
Sep 19 '07 #2

Post your reply

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

Similar topics

2 posts views Thread by ivanhoe | last post: by
5 posts views Thread by Alex Maghen | last post: by
4 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
1 post views Thread by rynato | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.