首 页 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-2.html
 // framework
 dhtmlHistory.initialize();

 // subscribe to DHTML history change
 // events
 dhtmlHistory.addListener(historyChange);

 // if this is the first time we have
 // loaded the page...
 if (dhtmlHistory.isFirstLoad()) {
  debug("Adding values to browser " + "history", false);
  // start adding history
  dhtmlHistory.add("helloworld", "Hello World Data");
  dhtmlHistory.add("foobar", 33);
  dhtmlHistory.add("boobah", true);

  var complexObject = new Object();
  complexObject.value1 = "This is the first value";
  complexObject.value2 = "This is the second data";
  complexObject.value3 = new Array();
  complexObject.value3[0] = "array 1";
  complexObject.value3[1] = "array 2";

  dhtmlHistory.add("complexObject", complexObject);

  // cache some values in the history
  // storage
  debug("Storing key 'fakeXML' into " + "history storage", false);
  var fakeXML =
   '<?xml version="1.0" '
   + 'encoding="ISO-8859-1"?>'
   + '<foobar>'
   + '<foo-entry/>'
   + '</foobar>';
Tags:
Ajax:如何处理书签和后退按钮
'http://www.etoow.com/html/2008-03/1206106079-2.html
12
3
 
456
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved