|
-
Dec 1st, 2003, 04:35 PM
#1
Thread Starter
Fanatic Member
[Resolved] Open new instance of I.E.
How would you redirect to a new page and open a new instance of IE.
Also, would it be possible to open this web page and have it invisible until the processing is done?
Thanks
Last edited by indydavid32; Dec 7th, 2004 at 02:01 PM.
Reason: Resolved
David Wilhelm
-
Dec 2nd, 2003, 04:24 AM
#2
Fanatic Member
if it is when you click on a hyperlink then set the target property to _blank.
-
Dec 2nd, 2003, 07:49 AM
#3
Thread Starter
Fanatic Member
No hyper link, it would be when I would do a response.redirect("blah.aspx")
-
Dec 2nd, 2003, 07:55 AM
#4
Fanatic Member
this is a bit of code i found in an app someone did here at work:
Code:
response.write("<script>javascript:mywin.window.open('webform3.aspx','FileOpen','menubar=no,scrolling=no,locationbar=no,width=500,height=350');my_win.focus();</script>")
(for some reason it puts a space between java and script with shouldn't be there
hope this helps
Nick
-
Dec 2nd, 2003, 01:46 PM
#5
Thread Starter
Fanatic Member
I couldn't get that to work. Anyone else have any ideas? I just want to open one of my aspx pages in a new IE window, then continue processing on my main web page. Some sort of Response command perhaps?
-
Dec 3rd, 2003, 11:15 AM
#6
No there isnt. You cant open windows on the client from the server. The only option is the javascript option given to you.
-
Dec 3rd, 2003, 12:02 PM
#7
Thread Starter
Fanatic Member
Ok, can you guys help make it work then?
I get an error saying mywin is undefined. What should I have there?
-
Aug 2nd, 2004, 04:34 AM
#8
Fanatic Member
I know this is an old thread but I wanted to do the same thing as indydavid32.
I managed to get the code to work so am posting it for future searchers.
Code:
Response.Write("<script>javascript:window.open('userguide/cbhelp.htm','FileOpen','menubar=no,scrolling=no,locationbar=no,width=500,height=350');</script>")
I removed the my_win part altogether.
-
Aug 2nd, 2004, 08:10 AM
#9
I wonder how many charact
Popup blockers will stop that javascript code from working however. The only way to be sure it will open is to use a hyperlink with target =_blank.
-
Aug 2nd, 2004, 08:16 AM
#10
Fanatic Member
Ok I have tested that and it works.
If using _blank is it possible to switch off the menubar, toolbars, and address bars.
-
Aug 2nd, 2004, 11:27 AM
#11
I wonder how many charact
Nope...
The only thing that usually works is if you have
'javascript opmyWindow()' in an HREF.... I would think most pop-up blockers would allow that to run...most blockers only block onLoad actions of the Body tag.
-
Aug 2nd, 2004, 11:29 AM
#12
I wonder how many charact
Here's some test code:
Code:
<html>
<body onLoad="Jopit()">
<script language="javascript">
function Jopit()
{
window.open('http://www.google.com');
}
</script>
<a href="javascript:Jopit()"> Hi </a>
</body>
</html>
Last edited by nemaroller; Aug 2nd, 2004 at 11:33 AM.
-
Dec 7th, 2004, 02:01 PM
#13
Thread Starter
Fanatic Member
Re: Open new instance of I.E.
Tanks David Robin.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|