jQuery Mobile Question:
Download Job Interview Questions and Answers PDF
How to control page titles in jQuery Mobile?
Answer:
When you load the first page of a jQuery Mobile based site, then click a link or submit a form, AJAX is used to pull in the content of the requested page. Having both pages in the DOM is essential to enable the animated page transitions, but one downside of this approach is that the page title is always that of the first page, not the subsequent page you're viewing. To remedy this, jQuery Mobile automatically parses the title of the page pulled via AJAX and changes the title attribute of the parent document to match.
Download jQuery Mobile Interview Questions And Answers
PDF
Previous Question | Next Question |
Why is only the first page of multi page document loaded? | Why content injected into a page is not enhanced? |