View Single Post
Old 10-04-2012, 10:35 AM   PM User | #4
Daniel Evans
New to the CF scene

 
Join Date: Aug 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Daniel Evans is an unknown quantity at this point
sunfighter : Well, I may have given a bit of a wrong impression with my initial post. There already exist many lines of PHP code and with each request, the tasks are done server-side. What is left on the client end of things is to a) execute the additional tasks the PHP scripts tell me to, simply by requesting other urls in the proper order as well as keep doing that until everything is done and b) to display the results of said tasks properly in the browser.

I wasn't really asking for someone to write me complicated JavaScript code, but I needed to find a way that allows me to react to the server-side responses. Since I had never done anything like that before, I was stumped.

rnd me has done just that and I'm very grateful for his suggestion to use callbacks. I'll be making myself familiar with the concept and then attempt to build it the right way, without loops, frozen browsers, etc

Thanks for your help!
Daniel Evans is offline   Reply With Quote