暑期缤纷巨献之~------超级+无敌--------XML+javascript+ASP在线短信息功能!(7)


 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+           超级+无敌--------XML+javascript+ASP在线短信息功能---介绍
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

---------下面的文件就是处理回复信息的MISSYOU.ASP页,代码比较长,慢慢看看-----------

 

<%@EnableSessionState=False%>
<%
Option Explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0
%>
<!--#include Virtual="/turbo/Inc/WriteXML.ASP"-->
<%
Dim Dom
Dim Root
Dim MyID
Dim MyName
Dim ID
Set Dom = Server.CreateObject("Microsoft.XMLDOM")
MyID = Request.Cookies("MyID")   
MyName = Request.Cookies("MyName")
If (Not IsNumeric(MyID)) or (MyName = "") Then
Call ShowError()
End If
With Dom
.async = False
.Load Request
If .parseError.errorCode <> 0 Then
Call ShowError()
End If
On Error Resume Next
Set Root = .documentElement
ID = Root.childNodes.item(0).Text
End With

If Not IsNumeric(ID) Then
Call ShowError()
End If

If Err.number<>0 Then
Err.Clear
Call ShowError()
ElseIf WriteXML(Dom, Server.MapPath("XML/" & ID & ".XML"), MyID, MyName, Date, replace(replace(replace(now,"-",""),":","")," ",""), Root.childNodes.item(1).Text) Then
Call ShowError()
Else
Response.Write("<A><B>false</B></A>")
Set Dom = Nothing
End If

Sub ShowError
Response.Write("<A><B>true</B></A>")
Set Dom = Nothing
Response.End
End Sub
%>

 

-------------------------------等等的是一些需要用的JS文件和ASP文件-------------------------

本文作者:



相关阅读:
javascript jQuery插件练习
PHP 函数语法介绍一
如何设定防火墙IP Firewall
JavaScript入门教程(12) js对象化编程
Oracle Database 12g将不支持裸设备
Oracle数据库是如何进制转换的
MVC模式的PHP实现
CSS滤镜:FlipH、FlipV属性
ORACLE控制文件的管理和维护
在ASP.NET使用javascript的一点小技巧
今天终于自己作了一个Ajax程序,陶醉中
PHP的substr_replace将指定两位置之间的字符替换为*号
JavaScript Eval 函数使用
网页内嵌Windows Media Player播放器的多文件播放方法
快速导航

Copyright © 2016 phpStudy | 皖ICP备18014864号-4