Page 1 of 1

is Sequential Execution possible for 2 javascripts...

Posted: Wed Feb 24, 2010 12:28 pm
by saurabh208
hello frnds,
i got 2 scripting web pages .... 1 is auto log in and other is auto sms send...

i want that first the 1.html is excuted and after that 2.html will automaticlly executed....

is it possible??

Re: is Sequential Execution possible for 2 javascripts...

Posted: Wed Feb 24, 2010 3:08 pm
by AbraCadaver
Not sure if it would work with your login system, but display 1.html and it logs in, then window.location = "http://www.example.com/2.html"; and let it do the SMS send or whatever.

Re: is Sequential Execution possible for 2 javascripts...

Posted: Thu Feb 25, 2010 11:57 am
by Kurby
Doesn't make a whole lot of sense. If you have 2 different routines just call them sequentially from the same page. No point in transferring from one page to another because the user will never see the first page (unless your javascript is delayed or takes a really long time).