So I've just started learning jQuery Mobile, and I've learned how it loads all links via ajax without actually loading the next page. Several of my pages use forms and GET to pass data on to the next page-- How can I do this while using jQuery Mobile?
相关问题
- HTML <form> tag causing Rails form to submit
- Jquery mobile dual range slider reload with new ra
- How can I send parameters for ASP.NET webservice
- jquery-mobile still “No Back Button” (Beta 2)
- Using AJAX to get a specific DOM Element (using Ja
相关文章
- C#中 public virtual string Category { get; }这么写会报错:
- Checking & Unchecking Checkboxes inside a JQuery M
- How to download image using rest template?
- Get size of Bitmap Android [duplicate]
- jQuery ajax call returns empty error if the conten
- Getting number of fields in a database with an SQL
- Getting all items of QComboBox - PyQt4 (Python)
- Pre-fill Woocommerce checkout fields with Url vari
Commonly, there 2 method for transfer parameter between jQuery Mobile page.
This is the method use ajax address to transfer parameter. How to pass and get Parameters between two Pages in Jquery Mobile?
Using sessionStorage/localStorage to transfer parameter, you can add this code at first page,
In next page, you can use this method to take parameter content,
One thing that I think is cool about JQM is that you don't have to use parameters to pass data between pages. Since you're in the same DOM as the first page, you can access data using plain old variables, i.e.
And so long as you're using the ajax feature of JQM you could do the following in the next page:
I made a jsfiddle example for you.
Other ways would be to use the localStorage or sessionStorage api or there are also some plugins mentioned in the docs.