首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

Ajax:如何处理书签和后退按钮

整理日期:2008年03月21日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-03/1206106079.html

  以下为引用的内容:
<!-- Load the Really Simple
History framework -->
<script type="text/javascript"
src="../../framework/dhtmlHistory.js">
</script>

  DHTML历史记录应用程序也必须在与AJAX Web页面相同的目录下包含blank.html文件;这个文件与RSH框架打包在一起,且对于Internet Explorer来说是必需的。顺便提一下,RSH使用一个隐藏Iframe来跟踪和添加Internet Explorer的历史记录变化;这个Iframe需要我们指定一个实际的文件位置才能正常工作,这就是blank.html。

  RSH框架创建了一个叫做dhtmlHistory的全局对象,这是操纵浏览器历史记录的入口点。使用dhtmlHistory的第一步是在Web页面加载完成后初始化dhtmlHistory对象:

  以下为引用的内容:

window.onload = initialize;

function initialize() {
 // initialize the DHTML History
 // framework
 dhtmlHistory.initialize();

  然后,开发人员使用dhtmlHistory.addListener()方法订阅历史记录变化事件。这个方法带有一个JavaScript回调函数,当DHTML历史记录变化事件发生时,该函数接收两个参数:新的页面位置以及任何可与该事件关联的可选历史记录数据:

  以下为引用的内容:

window.onload = initialize;

function initialize() {
 // initialize the DHTML History
 // framework
 dhtmlHistory.initialize();

 // subscribe to DHTML history change
 // events
Tags:
Ajax:如何处理书签和后退按钮
'http://www.etoow.com/html/2008-03/1206106079.html
1
 
23456
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved