B
Brian Burgess
Hi all,
Anyone see anything wrong with the following:
***************************************************************
<%@ LANGUAGE="VBSCRIPT" %>
<%
Option Explicit
Dim nAcctNbr
Dim nMsgStart
Dim nMsgEnd
If Not(Request.Cookies("AcctNbr")="") Then
nAcctNbr = CInt(Request.Cookies("AcctNbr"))
End If
If Not(Request.Cookies("MsgStart")="") Then
nMsgStart = CInt(Request.Cookies("MsgStart"))
End If
If Not(Request.Cookies("MsgEnd")="") Then
nMsgEnd = CInt(Request.Cookies("MsgEnd"))
End If
If Not (Session("USE_XML") = "True") Then
%>
<HTML>
<head>
<meta name="VI60_DTCScriptingPlatform" content="Server (ASP)">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<BODY>
<form method="post" action="page2.asp" name="Page1Frm">
From: <input type="text" width=100 name="FIRST" size="20"><BR>
Until: <input type="text" width=100 name="LAST" size="20"><BR>
Bundle id: <input type="text" width=100 name="BUNDLE_ID"
size="20"><BR>
<input type="submit" value="Submit" name="submit">
</form>
<%
Else 'if using XML
nAcctNbr = 0
nMsgStart = 0
nMsgEnd = 9
Response.Cookies("AcctNbr") = nAcctNbr
Response.Cookies("MsgStart")= nMsgStart
Response.Cookies("MsgEnd") = nMsgEnd
Response.Cookies("AcctNbr").Expires = DateAdd("d", 2, Now)
Response.Cookies("MsgStart").Expires= DateAdd("d", 2, Now)
Response.Cookies("MsgEnd").Expires = DateAdd("d", 2, Now)
%>
<HTML>
<head>
<meta name="VI60_DTCScriptingPlatform" content="Server (ASP)">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<BODY>
<FORM>
<XML ID="XMLID">
<%
Response.write "Finished."
%>
</XML>
<script language="JavaScript">
<!--
alert("Finished...");
-->
</script>
<BR>Complete<p><BR>
</FORM>
</BODY>
</HTML>
<%
End if 'USE_XML
%>
***************************************************************
This has been tested on IE60 and Pocket IE. The cookies are NOT
writing to either browser.. :-(
Thanks for any insight in advance..
-BB
Anyone see anything wrong with the following:
***************************************************************
<%@ LANGUAGE="VBSCRIPT" %>
<%
Option Explicit
Dim nAcctNbr
Dim nMsgStart
Dim nMsgEnd
If Not(Request.Cookies("AcctNbr")="") Then
nAcctNbr = CInt(Request.Cookies("AcctNbr"))
End If
If Not(Request.Cookies("MsgStart")="") Then
nMsgStart = CInt(Request.Cookies("MsgStart"))
End If
If Not(Request.Cookies("MsgEnd")="") Then
nMsgEnd = CInt(Request.Cookies("MsgEnd"))
End If
If Not (Session("USE_XML") = "True") Then
%>
<HTML>
<head>
<meta name="VI60_DTCScriptingPlatform" content="Server (ASP)">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<BODY>
<form method="post" action="page2.asp" name="Page1Frm">
From: <input type="text" width=100 name="FIRST" size="20"><BR>
Until: <input type="text" width=100 name="LAST" size="20"><BR>
Bundle id: <input type="text" width=100 name="BUNDLE_ID"
size="20"><BR>
<input type="submit" value="Submit" name="submit">
</form>
<%
Else 'if using XML
nAcctNbr = 0
nMsgStart = 0
nMsgEnd = 9
Response.Cookies("AcctNbr") = nAcctNbr
Response.Cookies("MsgStart")= nMsgStart
Response.Cookies("MsgEnd") = nMsgEnd
Response.Cookies("AcctNbr").Expires = DateAdd("d", 2, Now)
Response.Cookies("MsgStart").Expires= DateAdd("d", 2, Now)
Response.Cookies("MsgEnd").Expires = DateAdd("d", 2, Now)
%>
<HTML>
<head>
<meta name="VI60_DTCScriptingPlatform" content="Server (ASP)">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<BODY>
<FORM>
<XML ID="XMLID">
<%
Response.write "Finished."
%>
</XML>
<script language="JavaScript">
<!--
alert("Finished...");
-->
</script>
<BR>Complete<p><BR>
</FORM>
</BODY>
</HTML>
<%
End if 'USE_XML
%>
***************************************************************
This has been tested on IE60 and Pocket IE. The cookies are NOT
writing to either browser.. :-(
Thanks for any insight in advance..
-BB