I want to make a form that will use jquery to submit a list of keyword to a php file, this file could take a lot of time to load depending on the size of the keywords list.
What I want to do is to load the php response into a div or container in real time without using iframes.
All the ajax request I know have to wait until the request has finished before having access to the response, I need to get access to that response even when it hasn’t finished so I can update the progress in real time.
Indeed there is a way. With plain old xmlhttpobjects I monitored the readyState. Ready state 4 means the request has ended. Ready state 3 means I can get some of the output and wait for more:
I believe you can achieve the same using jQuery: jQuery: Is req.readyState == 3 possible?