怎样解决AJAX交互应用中遇到的浏览器的BACK后退按钮问题
AJAX越来越多的应用到网页交互上,但是用AJAX做交互也有一些问题,比如传统网页的浏览是一个一个页面切换,所以可以用浏览器的后退按钮和前进按钮切换到指定的浏览过的页面,也就是浏览器的history.
但是用AJAX做交互的时候,是通过js+xmlhttp来获取其他页面信息,对于浏览用户来说,是一个隐性的UE,感觉不到浏览器地址栏的URL的变化,对浏览器来说,地址栏的URL没发变化,产生不了HISTORY。
不是说在用AJAX做交互的时候,BACK按钮的问题就解决不了,对于AJAX应用很成熟的网站比如google等,这些都已经解决。有热心的老外已经提供了解决方法,粗粗看了看,原理是用了iframe,有兴趣的自己去研究吧
老外管这个叫:Really Simple History framework,还有专门的AJAX history libraries
原文介绍:点击这里浏览
先看一个演示吧:
http://www.donotremove.co.uk/extra/ajax-nav/index.html
这个演示的下载地址,是PHP的
http://www.contentwithstyle.co.uk/resources/ajax-nav/ajax-nav.zip
另一篇文章介绍:点击这里浏览
这篇文章例子的下载:点击这里下载
但是用AJAX做交互的时候,是通过js+xmlhttp来获取其他页面信息,对于浏览用户来说,是一个隐性的UE,感觉不到浏览器地址栏的URL的变化,对浏览器来说,地址栏的URL没发变化,产生不了HISTORY。
不是说在用AJAX做交互的时候,BACK按钮的问题就解决不了,对于AJAX应用很成熟的网站比如google等,这些都已经解决。有热心的老外已经提供了解决方法,粗粗看了看,原理是用了iframe,有兴趣的自己去研究吧
老外管这个叫:Really Simple History framework,还有专门的AJAX history libraries
原文介绍:点击这里浏览
先看一个演示吧:
http://www.donotremove.co.uk/extra/ajax-nav/index.html
这个演示的下载地址,是PHP的
http://www.contentwithstyle.co.uk/resources/ajax-nav/ajax-nav.zip
另一篇文章介绍:点击这里浏览
这篇文章例子的下载:点击这里下载
Browser | Bookmarking | Back button |
---|---|---|
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 |
24 Comments:
buy diazepam cheap diazepam pakistan - buy diazepam australia
diazepam 10mg valium drug classification - valium side effects rage
buy zolpidem side effects from zolpidem tartrate - zolpidem 10 mg not working
buy zolpidem ambien generic strengths - ambien cr generic vs brand
buy alprazolam xanax withdrawal really bad - xanax pills description
buy generic ativan ativan 063 - ativan side effects nausea
valium generic 10 mg diazepam generic valium - can buy valium mexico
buy xanax overnight delivery xanax drug test period - long do effects xanax take kick
diazepam overdose buy diazepam online with mastercard - 2mg diazepam high
ativan online generic ativan no prescription - ativan liver damage
can you buy xanax online legally xanax withdrawal anxiety - xanax generic blue
xanax mg where to order xanax - generic xanax xr 1mg
ativan online pharmacy illegal buy lorazepam online - ativan classification
xanax sale xanax overdose for dogs - buy xanax 2mg no prescription
buy ambien online without prescription generic ambien available - buy ambien online mastercard
soma sale soma medication indications - carisoprodol in urine test
buy soma online carisoprodol 350 mg street value - soma positive drug test
buy valium online valium for sale online - buy cheap valium online no prescription
buy ambien online 80mg ambien - ambien 479
buy valium online what does a generic valium pill look like - buy valium online usa
soma price buy soma from canada - buy soma online no prescription cheap
valium purchase valium dosage small dog - effects valium depression
ambien pharmacy ambien side effects eating - generic name for ambien cr
ambien no prescription long does ambien 10 mg take work - can ambien overdose fatal
Post a Comment
Subscribe to Post Comments [Atom]
<< Home