jonthequik
Programmer
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
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