December 2013
Intermediate to advanced
384 pages
9h 54m
English
<$.mobile.loadPage("newPage.php", {data=$("form").serialize(), type="post"});
Another helpful function is .loadPage(URL, options). It downloads the mobile page from the web server using an AJAX call but does not change the mobile page to the downloaded one. Actually, .changePage() calls .loadPage() underneath to retrieve the page. Most of the options listed in Table 14.3 are also available via .loadPage(), except changeHash, dataUrl, reverse, and transition.
The .loadPage() function is useful for preloading pages in the initialization functions that you want available later but do not want to display yet. The following code shows an example of loading a page using ...
Read now
Unlock full access