SyntaxFix
Write A Post
Hire A Developer
Questions
how remote is that url ? is it from the same domain ? the code looks okay
try this
$.ajaxSetup({async:false}); $.get(remote_url, function(data) { remote = data; }); // or remote = $.get(remote_url).responseText;