Is there any way to follow the output downloaded “so far” when doing a request with Mootools?
I know there’s “onProgress”, but that only gives me the bytes downloaded.
The page that is being downloaded, is a list of e-mail addresses, and for every e-mail that has been sent, the page appends a line to the page until it’s done executing.
I would like to take that latest line, and present that to the user, as the progress goes on…
mootools supports only what webkit and gecko support (and now maybe IE9/10).
the progress event – if available – should be enough to get you going. see https://dvcs.w3.org/hg/progress/raw-file/tip/Overview.html for the spec of what is available.
http://jsfiddle.net/dimitar/tYdjN/
this example is using jsfiddle’s ajax api and I am using Faker.js to generate 10000 random emails – whihc jsfiddle sends back to me in chunks. each chunk outputs its own emails in a div.