Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

JSP positioning

I have a jsp which has a button.

On click i open up a new independent jsp. How do i position it to place i require.

I know onload option calling js. But i dont want onload.

This should happen as soon as jsp is triggered before processing happens.

Any experts?
0
mahalasa
Asked:
mahalasa
1 Solution
 
drcheapCommented:
See: http://www.pageresource.com/jscript/jwinopen.htm

Most notably the last section entitled "Set the Window Position"
0
 
drcheapCommented:
Here is also a handy way to obtain the main window's size/position.  With that and a little math you can then position your popup window relative to the main window instead of at specific monitor coordinates.

http://javascript.about.com/od/guidesscriptindex/a/screen.htm
0
 
mahalasaAuthor Commented:
can resize sometimes lead to loss of data?  i see that sporadically it goes blank.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mahalasaAuthor Commented:
Hi drcheap...i have whole set of data to be passed to new jsp through js. How do i do it?
0
 
mahalasaAuthor Commented:
any experts on jsp?
0
 
Sathish David Kumar NCommented:
sorry i didnt get your question clealy?
when u click button that timw new window or same window will open the new Jsp??
can you tell clearly?
0
 
HegemonCommented:
Open the window and move it to where you want to be:

...

function f() {
   wnd = window.open (url, name, options);
   wnd.moveTo (123, 456);
}
..
<a href="" onclick="f()" />

0
 
mahalasaAuthor Commented:
will check with these solutions
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now