All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
在ASP.NET,2.0中数据绑定的实现方法_.net资料_编程技术
Sql,server,优化其索引的小技巧_[SQL,Server教程]
基于Gettext的asp.net网站多语言解决方案_.net资料_编程技术
SQL数据操作基础(中级)6_mssql学习_编程技术
ASP.NET如何存取SQL,Server数据库图_[Asp.Net教程]
apache中httpd.conf的中文件详解_[PHP教程]
提高效率,精选ASP.NET实用代码片段_[Asp.Net教程]
ASP.NET2.0的控件状态和视图状态探讨_[Asp.Net教程]
如何在十天内学会php之第五天_[PHP教程]
在C语言中以编程的方式获取函数名_[Asp.Net教程]
Reading number is top 10 pictures
运动的范冰冰3
囚犯暴乱了咋办?
Chinese paper-cut grilles art appreciation2
Black and white also sexy--YanLiu1
The wise woman of chest1
From China fortress sora aoi5
The money of more than 100 countries and regions21
A man's favorite things15
Breasts woman big set 1
擦地板的大叔太好了
Download software ranking
Unix video tutorial14
WebService在.NET中的实战应用教学视频 → 第4集
Tram sex maniac 2 (H) rar bag2
Boxer's Top ten classic battle9
Unix video tutorial7
Desire a peach blossom
变速齿轮3.26
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
美女写真1
jdk1.6 for windows
delv published in(发表于) 2014/1/16 9:31:02 Edit(编辑)
利用Asp.net,Ajax异步获取xml文档内容_[Asp.Net教程]

利用Asp.net,Ajax异步获取xml文档内容_[Asp.Net教程]

利用Asp.net Ajax异步获取xml文档内容_[Asp.Net教程]

Ajax原意本是让人利用异步获取XML内容,以实现无刷新的网页效果
asp.net ajax已将底层内容封装
实现起来远比自写xmlhttp来的方便,至少浏览器兼容方面要强得很多
下面以一个www.asp.net的示例说明一下利用microsoft ajax library来简单异步获取xml文档的方法



// 返回XML的Web 请求
function OnSucceededXml(executor, eventArgs)
...{
if (executor.get_responseAvailable())
...{

if (document.all)
resultElementId.innerText += executor.get_xml().xml;
else
// Firefox
resultElementId.textContent += "First node[首节点]: " +
executor.get_xml().documentElement.nodeName;


}
else
...{
if (executor.get_timedOut())
alert("超时");
else
if (executor.get_aborted())
alert("失败");
}
}
function GetXml()
...{
//创建WebRequest对象
wRequest = new Sys.Net.WebRequest();


//设置请求文件
wRequest.set_url("index.xml");

// Set the request handler.
wRequest.add_completed(OnSucceededXml);

// Clear the results area.
if (document.all)
resultElementId.innerText = "";
else
// Firefox
resultElementId.textContent = "";

// Invoke the Web request.
wRequest.invoke();
}





来源:cnblogs







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.