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?
Share
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.