Javascript Sleeping Redirect

15 May, 2009 Javascript

So it sounds simple but as we have stated before sometimes the simple things are the things that but people.  Obviously there are sleep commands in every language an Javascript is no exception.

So real quick, sometimes you want to process some code (in this instance we wanted to process the Authorize.net Credit Card transaction and echo out the response using Java) and then after giving the user 5 seconds to read it forward them back to the queue of transactions to be processed.

Below is the code….

From the code below you would call “loadMe()” in your body onload statement….

2 Comments for this entry

  • justin, October 18th, 2010 on 6:00 pm

    Very welcome!

  • Della Despard, May 4th, 2010 on 9:11 pm

    not too shabby, thank you