在html中用javascript代码如何异步获取XML中的值
我要在HTML中用JavaScript代码异步获取XML文件中一个节点的值比如
<?xml version="1.0" encoding="GB2312"?>
<configuration>
<appSettings>
<add key="123" value="456"/>
</appSettings>
</configuration>
我要在页面中异步获取 <add>节点中key属性和value属性的值!也就是得到123和456
希望高手帮忙解决下,麻烦给下注释!谢谢!!!
异步就是ajax了!在google中搜索一下有很多ajax responseXML的例子!
示例:
http://www.w3schools.com/Ajax/ajax_responsexml.asp
把xml名设置为tt.xml
异步的话用AJAX
学习
up
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
C#写JAVASCRIPT 数组
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
这是我的文本框
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
提交按钮
<input clas ......
如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
http://topic.csdn.net/u/20090830/23/5e5ded07-7216-46c2-9712- ......