I'm using YQL + jQuery to get the content from a remote page, I'm able to load the content in the 1st page load but after clicking the page menu to return back to the same page the div not appended.
I was able to achieve the refresh using ele.html(ele.html()), my code is bellow:
$(document).ready(function() {
$("#divAjaxLoading").show();
$.ajax({
type: 'GET',
url: "https://query.yahooapis.com/v...",
dataType: 'xml',
success: function (data) {
var result = $(data).find('results').find('.content');
//debugger;
$('#Home_CP_Home').html(result);
$("#Home_CP_Home").html($("#Home_CP_Home").html());
$("#divAjaxLoading").hide();
}
});
});