JSP page in another window

2001-06-30 Thread Kemp Randy

If I have JSP page A and I want to open up JSP page B
in a seperate and smaller window, while keeping JSP
page A, is there a way to do this?  I know it can be
done with JavaScript.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Re: JSP page in another window

2001-06-30 Thread Rian Schmidt

I do believe you can use the:
response.setHeader(Window-target,_blank);
approach to do such a thing, but I also recall that it's non-standard, and
so you should check it to make sure it works with your target browser.

Rian

- Original Message -
From: Kemp Randy [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 7:14 AM
Subject: JSP page in another window


 If I have JSP page A and I want to open up JSP page B
 in a seperate and smaller window, while keeping JSP
 page A, is there a way to do this?  I know it can be
 done with JavaScript.

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/






Re: JSP page in another window

2001-06-30 Thread Matthew Pangaro

If you don't care what the size, features, and location of the second
browser are, you can just set the target attribute in the href for page B to
be _blank. If you want to control the appearance of the new window, you
can use the javascript function:
window.open(URL, windowName[, windowFeatures])
http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#120273
1
or
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html

This will allow you to control the size, position, and features of the new
browser you spawn. There are samples on the devguru site. This is not jsp
specific, of course, since it's just client side javascript.

A quick sample to open pageb.jsp in the same dir as pagea.jsp might be:

script language=JavaScript
function openNewWin() {
 window.open('pageb.jsp', 'newWin', 'height=200,width=300,resizable=yes');
 return false;
}
/script
a href=# onClick=return openNewWin()TEST/a

This opens pageb.jsp in a resizable window named newWin, with the size
specified.

Hope this helps,
Matt Pangaro
Loki Technologies
http://www.lokitech.com

- Original Message -
From: Kemp Randy [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 5:14 PM
Subject: JSP page in another window


 If I have JSP page A and I want to open up JSP page B
 in a seperate and smaller window, while keeping JSP
 page A, is there a way to do this?  I know it can be
 done with JavaScript.