用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
相关问答:
这是我的文本框
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
提交按钮
<input clas ......
<script>
with(document)
{
for(var i=0;i <streams.length;i++)
writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......
Flex文件
c.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicati ......
各位大侠:请问大家一个Javascript问题,请告诉再下:
在一个网页中怎么用javascript获取在一个网页中有几个 <input>控件?
谢谢啊?请大家写下代码。谢谢!!!!
急救啊,给为高手请进来帮助 ......