Load an external page sending data via POST <script> function viewProduct(idProduct) { $.mobile.changePage("productdetail.php", { method: "post", data: { action: 'getProduct', id: idProduct }, transition: "fade" }); } </script> <a href="javascript:viewProduct(4200)" data-role="button" >My Text</ a > The destination must be a jQuery Mobile document including headers and a data-role="page".
All posts by
Changing Page
Changing The Page From Javascript Use the $.mobile.changePage method which allows you to transition to another page as if the user clicked a link. //Load an external page $.mobile.changePage("some_external_page.html"); //Transition to an internal page in the same document $.mobile.changePage($("#ThePageId")); changePage Properties transition transition name (default: "slide") reverse true/ false (default: false) type "get"/" […]
Cross-domain requests
If a page is on domain_a.com, you can’t load a page using AJAX from domain_b.com (the framework automatically uses a full HTTP request instead). Enabling Cross Domain Requests via AJAX If you are creating an offline application or a some sort of special hybrid solution you may be loading pages through the file://protocol (local files), […]
.Widgets General
The jQuery Mobile framework uses the widget architecture of the jQuery UI framework for desktop. A widget is a control that is managed by the framework. Global Configuration Every widget has an object constructor and a default configuration that can be changed inside the mobileinit event that affects every widget instance on the page. […]