jquery Programming Glossary: process_request_queue
Process chain of functions without UI block http://stackoverflow.com/questions/13250746/process-chain-of-functions-without-ui-block each function call happens in an event handler function process_request_queue If we have anything in the queue do an ajax call. Otherwise.. At the end of the ajax request process the queue again process_request_queue Now get the ball rolling process_request_queue So basically.. again process_request_queue Now get the ball rolling process_request_queue So basically we turn the ajax call itself into a pseudo loop...
Process chain of functions without UI block http://stackoverflow.com/questions/13250746/process-chain-of-functions-without-ui-block the main loop. It looks recursive but is not because each function call happens in an event handler function process_request_queue If we have anything in the queue do an ajax call. Otherwise do nothing and let the loop end. if request_queue.length Get.. ajax req.url function result req.callback result At the end of the ajax request process the queue again process_request_queue Now get the ball rolling process_request_queue So basically we turn the ajax call itself into a pseudo loop. It's basically.. result At the end of the ajax request process the queue again process_request_queue Now get the ball rolling process_request_queue So basically we turn the ajax call itself into a pseudo loop. It's basically the classic continuation passing style of programming..
|