RSH(Really Simple History)记录ajax的浏览历史
来源:互联网 发布:linux在根目录下新建 编辑:程序博客网 时间:2024/06/06 02:57
下载地址:http://code.google.com/p/reallysimplehistory/downloads/list
RSH0.6FINAL文件夹下的公用文件有:blank.html、json2005.js、json2007.js、rsh.compressed.js、rsh.js。下面我就用它写个简单的Demo:
index.html的代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="jq.js"></script> <script type="text/javascript" src="json2007.js"></script> <script type="text/javascript" src="rsh.js"></script> <title>Example | xHTML1.0</title> </head> <body> <div id="test"></div> <a href="#" onclick="test();return false;">click</a> <script type="text/javascript"> <!-- window.dhtmlHistory.create({ debugMode: false }); var hash_num = 0; function test() { hash_num++; $.get("test.php?r="+Math.random(),function(data){ new_hash=hash_num; $("#test").html(data); dhtmlHistory.add(new_hash,data); }); } $(document).ready(function(){ dhtmlHistory.initialize(); dhtmlHistory.addListener(changeHistory); }); function changeHistory(hash, data) { $("#test").html(data); } //--> </script> </body> </html>
test.php代码大致如下:
<?php $x = $_GET['r']; echo "{$x}:" . MD5($x); ?>
- RSH(Really Simple History)记录ajax的浏览历史
- RSH(Really Simple History)记录ajax的浏览历史
- AJAX 前进后退 (RSH--Really Simple History)
- 增加RSH(Really Simple History)框架对IE8的支持
- history命令记录历史执行时间
- 不留痕迹的清除部分history历史命令记录
- 显示商品历史浏览记录
- 《JavaWeb---利用cookie记录用户的历史浏览》
- 实现搜索的历史浏览记录,含数据库
- 浏览历史的实现
- js操作Cookie,实现历史浏览记录
- Java Cookie记录商品浏览历史
- JQ Cookie 获取历史浏览记录
- 历史 history
- rsh搭建记录
- 浏览器浏览记忆(history)几则技巧记录
- 二锅头的历史 - The History of Erguotou
- History(查看历史命令)的用法
- MFC-添加背景音乐(2)-封装了mciSendCommand的简单MCI类 .
- TSC条形码打印
- Java Filter过滤机制详解
- 手机字库(HTC)
- 相对路径
- RSH(Really Simple History)记录ajax的浏览历史
- 存储过程中计算 两日期 相隔月数
- MFC透明位图(2)--PNG的实现
- Animations使用(二)
- JS阻止事件冒泡
- sql server 聚合函数做条件 放到where后不好用
- mysql索引
- JSP中的inlcude标签(包含的使用)
- JSONP跨域