Book Image

jQuery Mobile First Look

Book Image

jQuery Mobile First Look

Overview of this book

Table of Contents (17 chapters)
jQuery Mobile First Look
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Navigation and page transitioning in AJAX


We have already discussed the particular way in which jQuery Mobile "follows" links: rather than forcing the browser to open a new page, the framework makes use of AJAX to load the (internal) page into the existing page's DOM.

In this way, the AJAX requests not only makes the user experience smooth but also results in quicker responses to the requests: every time we want to load an internal page (that is, a portion of a page), we use AJAX to asynchronously request that particular piece of information instead of reloading the whole page from the server, thus resulting in a more pleasant user experience.

But since we are basically always on the same page, we may wonder how can we move back and forward in the history stack and reference to other pages?

The answer to this question is, however, quite complicated. However, before we start reasoning on the effective way jQuery Mobile handles change page requests; we must make clear that we can still bookmark...