When attempting to load a HTML page inside the div, I encountered the following issue:
<a href="#1" title="" class="base-banner" page="www.google.com for example">
<img src="images" alt=""></a> <div id="landingpage"> </div>
Here is the JavaScript code being used:
$(document).ready(function() {
$(".base-banner").on("click", function(){
$("#landingpage").show().load($(this).attr("page"));
return false;
});
});
The loading works properly when trying to load a local page, but fails when attempting to load a live page. Any insights on where I went wrong and what needs to be corrected would be greatly appreciated.
Thank you in advance for your help.