By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,257 Members | 2,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,257 IT Pros & Developers. It's quick & easy.

javascript form submitting without client intervention

P: n/a
Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.
I played with JavaScript "setTimeout()" and "while" methods but
with no luck.
Any suggestions are welcome.
Thanks.
Alan

Dec 10 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ASM
klikic a écrit :
Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.
Take care that a lot of persons have anti-popups ! !
I played with JavaScript "setTimeout()" and "while" methods but
with no luck.
Any suggestions are welcome.
<script type="text/javascript">
function pub() {
foo=window.open('advertising.htm','','width=500,he ight=300');
}
</script>
<body onload="setTimeout('pub()',1500);">

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 10 '06 #2

P: n/a
ASM
ASM a écrit :
klikic a écrit :
>Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.
<script type="text/javascript">
function pub() {
document.forms['myForm'].submit();;
}
onload = function() { setTimeout('pub()',1500); }
</script>

<form name="myForm" action=" ... >

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 10 '06 #3

P: n/a
Thanks. Thant's it!

ASM je napisao/la:
ASM a écrit :
klikic a écrit :
Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.

<script type="text/javascript">
function pub() {
document.forms['myForm'].submit();;
}
onload = function() { setTimeout('pub()',1500); }
</script>

<form name="myForm" action=" ... >

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 10 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.