Peter Stanford
Member
I'm trying to open a new browser window whenever the user selects a document from a list. The list is correctly populated but to demonstrate the problem I've hard-coded the file name in the following example:
PrivateSub DisplayPageInNewWindow(ByVal PageName As String)
'Response.Write("<script type='text/javascript'>detailedresults=window.open(PageName);</script>")
Response.Write("<script language='javascript'>" & vbCrLf)
Response.Write("wndCht=window.open('QP_050.htm','','width=600, height=400,toobar=no,addressbar=no,menubar=no,scrollbars=yes,resizable=yes')")
Response.Write("<" & "/" & "script" & ">" & vbCrLf)
EndSub
This does not fail but simply redisplays the current window. The correct document displays if I simply use Response.Redirect (obviously not in a separate window).
Any help greatly appreciated!
PrivateSub DisplayPageInNewWindow(ByVal PageName As String)
'Response.Write("<script type='text/javascript'>detailedresults=window.open(PageName);</script>")
Response.Write("<script language='javascript'>" & vbCrLf)
Response.Write("wndCht=window.open('QP_050.htm','','width=600, height=400,toobar=no,addressbar=no,menubar=no,scrollbars=yes,resizable=yes')")
Response.Write("<" & "/" & "script" & ">" & vbCrLf)
EndSub
This does not fail but simply redisplays the current window. The correct document displays if I simply use Response.Redirect (obviously not in a separate window).
Any help greatly appreciated!
Last edited: