Click to See Complete Forum and Search --> : open new ie window with asp
Maartin
May 9th, 2001, 07:02 AM
Hi there,
I need to open a new IE window with asp.
Is there anybody out there who can help me ?
Thanks.
spetnik
May 9th, 2001, 09:49 AM
You cant. Use client-side JavaScript.
monte96
May 9th, 2001, 01:27 PM
heh.. ya..
function window_onload() {
window.open("MyNewPage.asp", "", "status=no,toolbar=no,menubar=no")
}
That will open a new IE instance with no status bar, toolbar, or menubar. tweak away...
Maartin
May 10th, 2001, 12:26 AM
spetnik
So there absolutly no way that I can do it ?
I wish I could do it on the client side but I need to check the session vars etc and bassed on that I need to open page(s).
monte96
The code is java script man. I need to make the choice on the server and not at the client.
Thanks for the help guys.
spetnik
May 10th, 2001, 12:45 AM
Well, the ASP will generate client-side javascript based on the server-side variables. That's what ASP is all about: Generating client-side code for the browser to read.
monte96
May 10th, 2001, 01:02 AM
Why would you open an instance of IE on the server?
spetnik
May 10th, 2001, 09:15 AM
<code>
<% If Session("sUID") = "" Then %>
function window_onload() {
window.open("MyNewPage.asp", "", "status=no,toolbar=no,menubar=no")
}
<% End If %>
</code>
monte96
May 10th, 2001, 10:36 AM
Unless you devise a way to skip some processing if the new window has been opened, you will have to split it because opening a new window requires that whatever page that gets loaded be loaded from the beginning. So, if you load the same page, it will simply keep opening windows until the user ran out of memory or stopped it.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.