Fetching a list of files through $.get()
Hi,
We are currently writing a custom speedtester. Our websites seems to be sometimes slow on different (geographical) locations.
This is what I wrote:
- $("#logger").append("Starting timer: " + startstop() + "<br/>");
$.get('/speedtester/10mb.jpg', function(data) {
$("#logger").append("Stopping timer: " + startstop() + "<br/>");
});
This will perfectly log me how much miliseconds it takes to fetch a file.
Now, we want to download files on different servers. But the problem is: we are facing the "cross-domain-scripting" problem. We are not able to $.get a file that is not in the same domain as the file were the script is running.
Any suggestions about the way we could handle this?