Topic: Multiple AJAX calls
I am writing a little tool using Xajax to basically run a series of tests, while at the same time providing the user with "real-time" feedback of the test results. The user presses a "Go" button which makes the first AJAX call. That AJAX call then calls the next and so on, each time adding more information in the html div tag.
My question is related to security. It is important that the tests are run in sequence so I need a way to verify that the previous test was completed successfully. I am concerned that somehow Test#3 could be run before Test#1 given the user figures out how to make the correct AJAX call by some other means.
Is there some sort of standard way of ensuring Test#3 is not run before Test#1?
Worst case I can use a local file on the server and track the test progress but I want to avoid that if I can.
Thank you for any advice/help.