In wanting to do partial page refreshes (load new content into a specific div) by Ajax, I’ve been trying (unsuccessfully) to find some code which’ll maintain history/back button and display correct page title.
The correct page title seems to be a problem, not just for me but many others who’ve posted in various forums.
Having searched a lot, I came across JQueryMobile, from which I quote (http://demos.jquerymobile.com/1.2.1/docs/pages/page-titles.html):
When you load the first page of a jQuery Mobile based site, then click a link, 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.
Seems ideal, but as a marketer rather than a tech-minded person, I’ve thus-far been unable to understand how to make it work.
And, if there’s an alternative solution, I’ll welcome that before what’s left of my diminishing brain totally melts.