易截截图软件、单文件、免安装、纯绿色、仅160KB

Ajax框架

var XmlHttp;
var PathUrl;
function createXmlHttp() {
    if (window.ActiveXObject) {
        return new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        return new XMLHttpRequest();
    }
}
function goAjax() {
    XMLHttpRequest = createXmlHttp();
    XMLHttpRequest.onreadystatechange = window[funName];
    XMLHttpRequest.open("POST", PathUrl, true);
    XMLHttpRequest.send(null);
}
function goAjaxMethod(funName, path) {
    PathUrl = path;
    if (goAjaxMethod.length < arguments.length) {
        PathUrl = PathUrl + "?";
        for (var index = goAjaxMethod.length; index < arguments.length; index = index + 2) {
            if (index = goAjaxMethod.length) {
                PathUrl = PathUrl + arguments[index] + "=" + encodeURIComponent(arguments[index + 1]);
            }
            else {
                PathUrl = PathUrl + "&" + arguments[index] + "=" + encodeURIComponent(arguments[index + 1]);
            }
        }
    }
    goAjax(funName);
}
function requestText() {
    return XMLHttpRequest.responseText;
}
function isSuccess() {
    if (xmlHttpRequest.readyState == 4 && xmlHttpRequest.status == 200) {
   &nbs


相关文档:

FireFox和IE 中 Ajax 同步执行

var Ajax = new Object;
Ajax.Sysch = function(url) {
var req;
var result = "";
//document .write ("hello")
if (window.XMLHttpRequest) {
//代码段1
// 非IE浏览器

req = new XMLHttpRequest();
//alert(req);
//req.setReque ......

基于AJAX服务器推Comet实现

数据表words结构
CREATE TABLE `words` (                                                                           & ......

Ajax add_beginRequest

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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">
<head runat=" ......

Ajax add_pageLoaded

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Summary description for Commen ......

ajax 安全性

完全适用ASP.NET的认证机制
–可以使用FormsAuthentication
•WebService方法可以操作Cookie
–Impersonation
–PrincipalPermission
WebService7.cs Code
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
usi ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号