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

Ajax 手写JS

var httpRequest = false;
var mesdivs = null
function sendRequest(url, mesdiv) {
 
    mesdivs = mesdiv;
    httpRequest = false;
    if (window.XMLHttpRequest) {
        httpRequest = new XMLHttpRequest();
        if (httpRequest.overrideMimeType) {
        }
    }
    else if (window.ActiveXObject) {
        try {
            httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e) {
            try {
                httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e) {
            }
        }
    }
    if (!httpRequest) {
        window.alert("no");
    }
    if (mesdivs == "sendmes") {
        httpRequest.onreadystatechange = function() {
            if (httpRequest.readyState == 4) {
                if (httpRequest.status == 200) {
                    var string = httpRequest.responseText;
            &


相关文档:

第一章 ASP.NET Ajax简介

第一章      ASP.NET Ajax简介
1.1什么是Ajax
一.什么是Ajax
Ajax是Asynchronous JavaScript and XML(异步JavaScript 和XML)的缩写,由著名用户体验专家Jesse-James Garrett在2005年2月18日发表的一篇名为Ajax:a New Approach to Web Applications文章中首先提出。
Ajax并不是只包含JavaScri ......

asp ajax 查看IP的所在地

index.asp文件  保存utf-8
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<form id="form1" name="form1" method="post">
<input name="ip" type="text" id="ip" style="width:170px" />
</form>
<mce:script type="text/javascript" src="ajaxrequest-m ......

Ajax使用示例

/***************************by
garcon1986********************************/
Index.php:
<script type="text/javascript" src="ajax.js" ></script>
<a href="#" onclick="funphp('S')" >S</a>
<a href="for.php?url=E" >E</ ......

jquery ajax中文处理方法

jquery中用ajax(貌似编码默认为utf-8)如果有中文的话 会出现乱码 下面的解决办法之一:
以下是js中的代码 
classname=encodeURI($('#classname').val());
classdescription=encodeURI($('#classdescription').val());
actionArr={classname:classname,classdescription:classdescription};
$.post("product_class ......

传智播客 教育办公系统基于AJAX对属性的修改

    1. 实现对属性的 Ajax 修改:
    1). 发送的 ajax 请求中需要包含哪些信息呢
        ①. 要修改的员工的 id.
        ②. 要修改的属性的名字.
        ③. 要修改的属性的值.
  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号