- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
利用XMLHTTP优化数据传输(Optimizing data transmission with XMLHTTP)
Optimizing data transmission with XMLHTTP
In the Web application, we often need to record the status of the client, if the browser supports Cookie function, which is good to do, but if the user from the Cookie function, how to record client information? When we submit new or modified data, we want to submit only the input data information without submitting any other information that is irrelevant to it. It can be easily implemented using XML data islands and XMLHTTP. A better way is to INPUT and SELECT controls to XML data island, in fact, if there is a more complex form elements, we can also use XPATH processing, which can carry out more complex operations. Using XMLHTTP, you can only submit data information, which can also reduce network traffic.
Here is a simple example of xmlhttpTest.htm:
body
XML id= xmlTest
XML version= 1
root
Customer
customerid00001/customerid
name Mencius E chapter /name
phon**/phone
address /address, information road, Beijing, Haidian District
description! [CDATA[htmlbody supports HTML code /body/html]]/description
/Customer
/root
/XML
script
Function, update ()
{
Var oXmlHttp = new ActiveXObject (Microsoft.XMLHTTP);
Change your own ServerName and VirtualDir here
OXmlHttp.Open (POST, http://mengxianhui/asp/update.asp, false);
OXmlHttp.setRequestHeader (Content-Type, text/xml)
OXmlHttp.Send (xmlTest.xml);
If (oXmlHttp.status = = 200)
{
Alert () does not return the correct data type. )
Return false
}
XmlTest.loadXML (oXmlHttp.responseXML.xml);
}
/script
table align=, center, cellspacing=, 6, style=, font-size:11pt
FORM NAME= frmTest
tr
td Customer Name: /td
tdINPUT TYPE=, text, dataSrc=, #xmlTest, name, style=, width:400px, dataFld=, /td
/tr
tr
td customer call: /td
tdINPUT TYPE=, text, dataSrc=, #xmlTest, phone, style=, width:400px, dataFld=, /td
/tr
tr
td customer address: /td
tdINPUT TYPE=, text, dataSrc=, #xmlTest, address, style=, width:200px, dataFld=, /td
/tr
t
您可能关注的文档
- 七年级下历史复习课件(Grade seven history review courseware).doc
- 七年级下-语文文学常识(Under Grade Seven - general knowledge of Chinese Literature).doc
- 七年级英语词汇表(English vocabulary for Grade Seven).doc
- 七年级语文上册 第13课《中秋咏月诗词三首》同步练习 苏教版(Grade seven Chinese census thirteenth class Mid Autumn Festival three poems about the moon's synchronous practice Jiangsu).doc
- 七年级语文上册《看云识天气》同步练习6 人教新课标版(Grade seven Chinese census cloud knowledge weather synchronous exercises 6 people to teach the new standard edition).doc
- 七年级语文上册 第25课《诗五首》练习 语文版(Grade seven Chinese census twenty-fifth class five poems practice of Chinese version).doc
- 七年级语文上册《秋天》同步练习2 人教新课标版(Grade seven Chinese census autumn synchronous exercises 2 people to teach the new standard edition).doc
- 七年战争(Seven years war).doc
- 七夕节祝福语大全(Tanabata Festival blessing words Daquan).doc
- 七下思品复习资料(Seven, think about quality review material).doc
- 利用感性工学原理设计产品造型(Using Kansei engineering principle to design product modeling).doc
- 利用两个小技巧确保Windows7文件系统的稳定性(Using two small tricks to ensure the stability of the Windows7 filesystem).doc
- 利用潜意识的力量(Use the power of the subconscious mind).doc
- 利用阻力位和支撑位的做单方法(A single method using resistance and support positions).doc
- 利于摩托超级节油的米勒循环(Miller cycle for motorcycle super fuel saving).doc
- 列车自动防护(ATP)系统的功能(The function of Automatic Train Protection (ATP) system).doc
- 凌科芯安公司与您分享如何选择高性能嵌入式加密IC(We share with you how to select high performance embedded encryption IC).doc
- 列车电视超无聊的黄金通道(Train TV super boring Golden Channel).doc
- 另类工作技巧(Alternative work skills).doc
- 另类面条的简单做法(Simple way of alternative noodles).doc
文档评论(0)