浏览模式 : 普通 | 列表
1 | 

右边栏重用AJAX加载了

[ 2008-7-8 22:49:06 | 作者 : Conanlwl ]

右边栏重用AJAX加载了...抛弃原来的日历控件...自己重新写了一个..便于AJAX的加载.

ajax读rss示例

[ 2007-10-25 23:46:55 | 作者 : Conanlwl ]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>this is test</title>

<script type="text/javascript">
var xmlHttp;

function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}

function readRSS(url) {
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);


}

function handleStateChange() {
if(xmlH...


1 |