Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open in ASP?

Status
Not open for further replies.

lamarw

MIS
Dec 18, 2002
223
0
0
US
Does anyone know what the ASP equivalent of java's window.open? Window.open allows for sizing the window as well as other options.
The closest I could find was thread855-809977 on march 30, 2004 which was:

Dim sURL As String = """XMLFileName.xml"""
Dim sName As String = """XML File"""
Dim sScript As String = "window.open" & "(" & sURL & ")" & "," & sName

Response.Write("<SCRIPT Language=VBScript>" & vbCrLf)
Response.Write(sScript & vbCrLf)
Response.Write("window.close" & vbCrLf)
Response.Write("</SCRIPT>")

So, the best ASP can do is generate java script to do this?

lamarw
 
I didn't know java had a window.open method [wink]

seeing as ASP is a server technology the most you will get out of it as for popup's is a response.write of the javascript method to the client source

___________________________________________________________________
[sub]
onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811
[/sub]

 
Right, of course, been away a little too long from ASP. Thanks for the reminder!

lamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top