Hey guys I'm new to jquery here!
I'm using this code to load an html page into a div:
<code>
function getPage(thePage){
$("#pageLoader").ajaxStart(function(){
$("#pageLoader").append('<div id = "loader"></div>');
});
$.ajax({
url: thePage,
cache: false,
html: true,
global: true,
success: function(html){
$("#loader").remove;
$("#pageLoader").html(html);
}
});
</code>
Now this works ok, but the page loaded into the div has links in it. I
add my getPage function to the links inside the page that gets loaded
into #pageLoader, but the function no longer works - it's like they
have been loaded into an iframe. How can I make it so links inside
pages loaded into #pageLoader div will also load inside the
#pageLoader div?