469,323 Members | 1,229 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 2468
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.