Jquery Load() a url in a div tag from resource located on a different Server
Hi,
I am trying to open a url in a div tag with click of an anchor tag hyperlink. my code works fine for the resource located in same directory structure, but it fails to load the url located in other server(e.g www.google.com)
Following is my code which is working for local resource.
<div id="divlink"><a id="anchorid" href="/About.aspx">Click Div me</a><br />
$('a#anchorid').bind('click', function (e) {
var url = $(this).attr('href');
$('div#divlink').load(url);
e.preventDefault();
});
});
Is there any other alternative to load a different server url in the div tag