How to solve the back button problem of browsers encountered in Ajax interactive applications

Source: Internet
Author: User
ajax| Button | interactive | browser | Problem AJAX more and more applications to web interaction, but there are some problems with Ajax interaction, such as the traditional web browsing is a page switch, so you can use the browser's Back button and forward button to switch to the specified browsed page, Which is the history of the browser.
However, when interacting with Ajax, it is through js+xmlhttp to get other page information, for browsing users, is a recessive UE, do not feel the browser address bar URL changes, to the browser, address bar URL did not change, can not produce history.
Not that when interacting with Ajax, the back button problem can not be solved, for AJAX applications are very mature sites such as Google, these have been resolved. There are enthusiastic foreigners have provided a solution, coarse to see, the principle is to use the IFRAME, interested in their own to study it
The foreigner tube This is called: Really simple History framework, but also has the specialized Ajax History libraries

About: Click here to browse
Let's take a look at a demo:
Http://www.donotremove.co.uk/extra/ajax-nav/index.html

The download address for this demo is PHP's
Http://www.contentwithstyle.co.uk/resources/ajax-nav/ajax-nav.zip

Another article introduction: Click here to browse

Download the example of this article: click here to download

Back
Browser Bookmarkingbutton
Ie6/pc Yes Yes
Ie5.5/pc Yes Yes
Ie5/pc Yes Yes
Ie5/mac No No
Firefox/pc Yes Yes
Firefox/mac Yes Yes
Safari1.2/mac Yes No


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.