| | Submitted on: 5/23/2002 7:27:33 PM
By: Serge Munoz
Level: Beginner User Rating:
By 3 Users Compatibility:ASP (Active Server Pages)
Users have accessed this article 2973 times. | |
| | A small script mixes ASP and Javasript to make messages alert or for the debugage. | |
|
Terms of Agreement:
By using this article, you agree to the following terms...
1) You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description. | <%' To be able to continue the code
Sub Debug(Msg)
Msg = Replace(Msg,"'","\'")
Response.Write "<SCRIPT LANGUAGE='JavaScript'>"
Response.Write "if(!confirm('"&Msg&"'))"
Response.Write "{"
Response.Write "location.href = 'Stop.asp';"
Response.Write "}"
Response.Write "</SCRIPT>"
End Sub
%>
<%'To stop the code
Sub Debug(Msg)
Msg = Replace(Msg,"'","\'")
Response.Write "<script language='JavaScript'>"
Response.Write "alert('"&Msg&"');"
Response.Write "history.back();"
Response.Write "</script>"
Response.End
End Sub
%>
<%If Request("Mail") = "" Then Msg = "Mail no valide"
: Debug Msg%> | |
|
Report Bad Submission |
|
|
Your Vote! |
See Voting Log |
|
Other User Comments |
11/4/2003 7:44:38 AM:Basel Nimer I don't get it, how to use this?
|
|
Add Your Feedback! |
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.
NOTICE: The author of this article has been kind enough to share it with you. If you have a criticism, please state it politely or it will be deleted.
For feedback not related to this particular article, please click here. |
|