473,508 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript form submitting without client intervention

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
3 1351
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1604
by: Dennis M. Marks | last post by:
I create most of my javascripts by modifying others, therefore, I do not have a vast knowledge of it and my question may seem trivial but please help me. If you go to my page...
5
1749
by: Florian Proch | last post by:
Hi all... i'm currently working for a big project to construct a website. We need to support some browser and OS : IE 5.0 -> IE 6, Mozilla 1.2 -> 1.7, Opera 5 -> Opéra 7.5x, Netscape 4.75 -> NS...
6
1392
by: Marios Koumides | last post by:
I have a page written in ASP and I added some Javascript code to ensure the input boxes are filled with correct data. That check is performed every time the user moves out from a textbox. Now right...
1
2260
by: Suhail A, Salman | last post by:
Dear All, I placed a HtmlSelect control on a web page and set it to "Run at Server", the objective of this HtmlSelect control is that the client adds all his accounts to a text box, and...
21
24406
by: Martin Eyles | last post by:
I am trying to get javascript to cause a page to post back. I have tried calling _doPostBack from my script, but generates an error "object expected". I think this is because the page's script...
9
1895
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
9
77407
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
15
2262
by: Asterbing | last post by:
Already posted in comp.lang.javascript but not found any solution :-( -- Hi all, Don't know where to ask my question because the way to go is included in the possible answer itself by...
4
5346
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.