js能把留言写入xml数据库吗?
我想用JS结合html做网站,别人写的留言,可以存储到xml数据库吗?可以实现吗?还是要结合php来实现呢?我的意思是说用xml做数据库
我想用JS结合html做网站,别人写的留言,可以存储到xml数据库吗?可以实现吗?还是要结合php来实现呢?我的意思是说用xml做数据库
答案:<script language="javascript">
function saveas()
{
var a = new ActiveXObject("Msxml2.Domdocument");
a.async=false;
a.load("d:\\11.xml");
show.innerHTML=a.documentElement.xml;
b=a.createElement("newNode");
b.text="new Value";
a.documentElement.appendChild(b);
var winSave = window.open();
winSave.document.open ("text/html","gb2312");
winSave.document.write (a.xml);
winSave.document.execCommand ("SaveAs",true,"c:\\11.xml");
winSave.close();
}
</script>
上一个:谁有这样的js 日历 如图
下一个:求一个控制目录树显示js