PhoneGuyNJ
Technical User
I am trying to make a window pop in an ASP page that bascially will pass order information to a subsite that makes a printout of their gift. I am having problems with the window.open command, and have tried about 10 different variations. Below is a snipped of the code area I need assistance with. Any help is apprieciated:
'--> Retrieve Order Total
if len(qIdOrder) > 0 and IsNumeric(qIdOrder) then
mySQL = "SELECT total,orderStatus " _
& "FROM cartHead " _
& "WHERE idOrder = " & validSQL(qIdOrder,"I") & " "
set rsTemp = openRSexecute(mySQL)
if not rstemp.eof then
qTotal = rsTemp("total")
orderStatus = rsTemp("orderStatus")
end if
call closeRS(rsTemp)
' check to see the user bought a season pass
mySQL = "SELECT COUNT(*) AS TOTAL " & _
"FROM cartRows " & _
"WHERE idProduct = 59 " & _
"AND idOrder = " & validSQL(qIdOrder,"I") & " "
set rsTemp = openRSexecute(mySQL)
if not rstemp.eof then
seasonPassTotal = rsTemp("total")
end if
call closeRS(rsTemp)
if seasonPassTotal <> 0 then
Response.Write"<script>window.open(' & qIdOrder,"Season Pass Receipt", "status=yes,toolbar=no" ');</script>"
end if
end if
%>
<!--#include file="../UserMods/_INCtemplate_.asp"-->
<%
'Close Database Connection
call closeDB()
'--> Retrieve Order Total
if len(qIdOrder) > 0 and IsNumeric(qIdOrder) then
mySQL = "SELECT total,orderStatus " _
& "FROM cartHead " _
& "WHERE idOrder = " & validSQL(qIdOrder,"I") & " "
set rsTemp = openRSexecute(mySQL)
if not rstemp.eof then
qTotal = rsTemp("total")
orderStatus = rsTemp("orderStatus")
end if
call closeRS(rsTemp)
' check to see the user bought a season pass
mySQL = "SELECT COUNT(*) AS TOTAL " & _
"FROM cartRows " & _
"WHERE idProduct = 59 " & _
"AND idOrder = " & validSQL(qIdOrder,"I") & " "
set rsTemp = openRSexecute(mySQL)
if not rstemp.eof then
seasonPassTotal = rsTemp("total")
end if
call closeRS(rsTemp)
if seasonPassTotal <> 0 then
Response.Write"<script>window.open(' & qIdOrder,"Season Pass Receipt", "status=yes,toolbar=no" ');</script>"
end if
end if
%>
<!--#include file="../UserMods/_INCtemplate_.asp"-->
<%
'Close Database Connection
call closeDB()