+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ 超级+无敌--------XML+JAVASCRIPT+ASP在线短信息功能---介绍
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------下面的文件就是发送删除已看过信息的eChangXml.ASP页,代码比较长,慢慢看看-----------
<%@EnableSessionState=False%>
<%
Option Explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0
Dim MyID
MyID = Request.Cookies("MyID")
If Not Isnumeric(MyID) Then
Response.Write("<A><B>true</B></A>")
ElseIf ReMove() Then
Response.Write("<A><B>true</B></A>")
Else
Response.Write("<A><B>false</B></A>")
End If
Function ReMove
Dim XmlDom
Dim Client
Dim Path
Dim XmlDomNode
Dim ClientNode
Dim Xml
Dim ClientXml
On Error Resume Next
Path = Server.MapPath("Xml/" & MyID & ".xml")
Set XmlDom=Server.CreateObject("Microsoft.XMLDOM")
Set Client=Server.CreateObject("Microsoft.XMLDOM")
XmlDom.Async=False
XmlDom.Load Request
Client.Async=False
Client.Load Path
If XmlDom.parseError.errorCode<>0 Then
ReMove = True
ElseIF Client.parseError.errorCode<>0 Then
ReMove = True
Else
Set XmlDomNode = XmlDom.documentElement
Set ClientNode = Client.documentElement
For Each Xml In XmlDomNode.childNodes
For Each ClientXml In ClientNode.childNodes
If Xml.Attributes.getNamedItem("ONLY").nodeValue = ClientXml.Attributes.getNamedItem("ONLY").nodeValue Then
ClientNode.reMoveChild(ClientXml)
End IF
Next
Next
Application.Lock
Client.Save Path
Application.unLock
End If
Set Client=Nothing
Set XmlDom=Nothing
If Err.number<>0 Then
Err.Clear
ReMove = True
End If
End Function
%>
------------------------------------等等是发送信息的ASP文件------------------------------------