I have a jQuery get request that isn’t working. I don’t understand why, because my research leads me to believe this should work, but it doesn’t….
$.get('http://www.triadbarspecials.com/ws/index.php', function(html){
$('#page').append(html);
});
#page is a div. I own the domain, and am calling from that domain, so that’s not a problem. I really can’t imagine what is going on here. This should insert HTML directly into the div and work magically, but I’m obviously no Houdini
No, this can’t work because its against the Same Origin Policy:
Ways it that work:
/ws/index.phpif your request is being done from the same domain.