473,383 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Open a new browser window

I know that I can redirect my user to another url with Response.Redirect, but
is there a way to open another browser, preferrably one with the menu and
toolbars not visible?

In other words, I'm looking to get as close to a modal dialog in a browser
based app as I can. I know that this has been solved. I've seen it done. It's
just that, faced with the massive amount of documentation I have no idea
where to look..
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus
Nov 17 '05 #1
3 1533
Rik,

Check the documentation for the open method on the window object in
javascript. This will be called from javascript that is called on the
client side (due to some event). In the open method, you can specify how
the new browser window will appear (with toolbars, etc, etc). It should be
noted that some of these options are no longer valid in Windows XP SP2, due
to security concerns.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rik Brooks" <rb*****@hhcc.com.donotspam> wrote in message
news:54**********************************@microsof t.com...
I know that I can redirect my user to another url with Response.Redirect,
but
is there a way to open another browser, preferrably one with the menu and
toolbars not visible?

In other words, I'm looking to get as close to a modal dialog in a browser
based app as I can. I know that this has been solved. I've seen it done.
It's
just that, faced with the massive amount of documentation I have no idea
where to look..
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus

Nov 17 '05 #2
Rik,

Here's a reference site where you can find the syntax for the
window.open() JavaScript method:

http://www.javascripter.net/faq/openinga.htm

Also, if you intend to open the new window from an ASP.NET server
control, you'll need to reference the JavaScript function in the
Attributes collection of the server control in order to make it fire
correctly from the client-side script.

HTH

Thanks,
Denny Boynton

Nov 17 '05 #3
This was great, and worked very well. Now I have another problem. I have a
server side button that needs to do some preperation and afterwards, if
everything goes well, open a new browser with a specific url.

Your responses showed me how to execute javascript from a server side
control, adding the javascript to the attributes. That addressed the problem
that I had. Now I have another. I need to open the browser window AFTER the
code behind event is finished, and even then only in the case that the event
finished successfully.

So, is there any way to accomplish this?
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus


"Denny Boynton" wrote:
Rik,

Here's a reference site where you can find the syntax for the
window.open() JavaScript method:

http://www.javascripter.net/faq/openinga.htm

Also, if you intend to open the new window from an ASP.NET server
control, you'll need to reference the JavaScript function in the
Attributes collection of the server control in order to make it fire
correctly from the client-side script.

HTH

Thanks,
Denny Boynton

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: nntp | last post by:
Are there other ways to open multile windows at once? <SCRIPT language="JavaScript"> function open1() { var open1 = window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
6
by: Mateo | last post by:
Hi! I tried to open page in new window with window.open(...) method. open() method supports fullscreeen mode, but I would like to open new maximized window with tiltle bar only.... Any idea...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.