I have a jQuery load script that strangely works with a text file hosted in one location but not in another. For example, this:
$(document).ready(function () {
$("button").click(function () {
$("#div10").load("https://dl.dropboxusercontent.com/u/29635158/replace.txt", function () {
alert("Done Loading");
});
});
});
...works just fine and is able to load the .txt document from my Dropbox.
But this:
$(document).ready(function () {
$("button").click(function () {
$("#div10").load("http://hs.biocanvas.net/files/replace.txt", function () {
alert("Done Loading");
});
});
});
...is the exact same script with the exact same .txt
file, except that .txt
file is now hosted on a different server (and the URL accordingly changed in the script). However, the .txt
file isn't loaded into the targeted div.
Both .txt
files are readable if you copy + paste their URLs into a browser.
Any thoughts? Thanks for your help.