设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 网页制作 >> XML >> 分享:XMLHTTPRequest的属性和方法简介
精品推荐
XML点击TOP10
·XML入门教程:XML CDATA
·使用 Jena API 处理 RDF
·XML入门教程:XML 浏览器支持
·XML入门教程:使用CSS显示XML
·用JavaScript显示XML
·XML教程:XML DOM 访问节点
·基础知识认识XML:下一代网络的基石
·XML教程:XML DOM 节点列表和 指定节点地图
·XML Schema帮你建模
·XML教程:XML DOM 节点信息
网页制作点击TOP10
·菜鸟架设动网论坛全教程
·全面理解javascript的caller,callee,call,apply概念
·网页模板的使用方法 (教程)
·初学者入门:如何学习网页制作?
·网页排版CSS教学
·图片循环滚动完美解决
·常用CSS大全
·XML入门教程:XML CDATA
·改变IE的字体大小设置时,页面字体不发生改变,怎样实现?
·CSS+JS打造类似QQ的网站导航菜单特效
精选专题

分享:XMLHTTPRequest的属性和方法简介

作者: 来源:http://www.xgdown.com/ 时间:2007-11-15 12:27:42

分享:XMLHTTPRequest的属性和方法简介(3)     // alert(book.xml);

   
    // 属性:onreadystatechange
    // onreadystatechange:指定当readyState属性改变时的事件处理句柄
    // 语法:oXMLHttpRequest.onreadystatechange = funcMyHandler;
    // 如下的例子演示当XMLHTTPRequest对象的readyState属性改变时调用HandleStateChange函数,
    // 当数据接收完毕后(readystate == 4)此页面上的一个按钮将被激活
    // 备注:此属性只写,为W3C文档对象模型的扩展.
    xmlhttp.onreadystatechange= HandleStateChange;
   
    // 方法:send
    // 发送请求到http服务器并接收回应
    // 语法:oXMLHttpRequest.send(varBody);
    // 参数:varBody (欲通过此请求发送的数据。)
    // 备注:此方法的同步或异步方式取决于open方法中的bAsync参数,如果bAsync == False,此方法将会等待请求完成或者超时时才会返回,如果bAsync == True,此方法将立即返回。
    // This method takes one optional parameter, which is the requestBody to use. The acceptable VARIANT input types are BSTR, SAFEARRAY of UI1 (unsigned bytes), IDispatch to an XML Document Object Model (DOM) object, and IStream *. You can use only chunked encoding (for sending) when sending IStream * input types. The component automatically sets the Content-Length header for all but IStream * input types.
    // 如果发送的数据为BSTR,则回应被编码为utf-8, 必须在适当位置设置一个包含charset的文档类型头。
    // If the input type is a SAFEARRAY of UI1, the response is sent as is without additional encoding. The caller must set a Content-Type header with the appropriate content type.
    // 如果发送的数据为XML DOM object,则回应将被编码为在xml文档中声明的编码,如果在xml文档中没有声明编码,则使用默认的UTF-8。
    // If the input type is an IStream *, the response is sent as is without additional encoding. The caller must set a Content-Type header with the appropriate content type.
    xmlhttp.Send(xmldoc);
   
    // 方法:getAllResponseHeaders
    // 获取响应的所有http头

共8页 9 7 [1] [2] [3] [4] [5] [6] [7] [88 :>

分享:XMLHTTPRequest的属性和方法简介 相关文章:
分享:XMLHTTPRequest的属性和方法简介 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com