Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit Delay

Status
Not open for further replies.

jonthequik

Programmer
Aug 6, 2000
40
US
In a web game I play online, there is a part where you can attack another player.

In one form, you submit which fleet your attacking with and it redirects you to another page where you submit a target to hit.

I'm trying to write a script that will submit form A, then form B after a 3 second delay and then repeat for every fleet.

I've got the loops down, but when I use setTimeout it screws things up. Currently, I am having a problem with it submitting the second form before the first is read by the server. Is there a way I can just pause the JavaScript for 3 seconds between submitting the Form A and B? Jonathan Hannan
Computer Repair, Webdesign
HTML, CGI, PERL, JavaScript, XML
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top