用javascript来修改、删除数据岛中的XML数据
html代码:(news.html)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>新闻数据管理 </title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
xmlDoc.async = false;
xmlDoc.load("news.xml");
//-->
</SCRIPT>
<!-- 新闻数据显示 -->
<xml id="n" src="news.xml">
</xml>
<table DATASRC=#n border="1">
<caption> <h2>新闻管理 </h2> </caption>
<thead>
<th>新闻ID </th>
<th>标题 </th>
<th>内容 </th>
<th>发布日期 </th>
<th> <input type="button" value="新增" /> </th>
</thead>
<t
相关问答:
C#写JAVASCRIPT 数组
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
各位好:
我在页面的div中放一个空iframe,想通过JS让iframe载入某个页面.这个如何操作.
因为要根据不同的情况载入不同的页面.所以不能开始就指定.
UP
window.document.getElementById(' ......
在网页中嵌入了一个media播放器,但是用javascript却不能控制播放和停止,各位高手有没有什么好办法?
<embed id="MediaPlayer1" autostart="0" clicktoplay="0" width=" ......
<?xml version="1.0" encoding="utf-8" ?>
<product>
<pc>
<name>迅雷 </name>
<name>Sp </name ......