JQuery Mobile - Run load () html and navigate () immediately afterwards
I'm implementing a small application using jQuery Mobile where I have a login screen that gives access to a home with menus that lead to a few pages. My question is how can I dynamically load the pages only when I click on the menu.
I tried to do something like
$('#home').load('home.html'); $.mobile.navigate("#home");
but despite the effect of the load carrying navigate does not work, or does not redirect to the page.
Can anyone give me a hint how to do this?