Jquery mobile 1.4 navigate to dynamically created page
Hi guys
does anyone has idea how to navigate to dynamically created page in jquery mobile 1.4?
e.g. in 1.3.0 version I did it like this
- ajaxCall(param1).always(function (data) {
//$.mobile.hidePageLoadingMsg();
if (data.d != null) {
var newPage = $(data.d);
//append it to the page container
newPage.appendTo($.mobile.pageContainer);
//go to it
$.mobile.changePage(newPage );
}
else {
MyApp.DisplayErrorMsg("Error calling service!!");
}
});
Thanks in advance,
Tommy