This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Adjusting the position of dialogue box when main window is restored. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Adjusting the position of dialogue box when main window is restored." Watch "Adjusting the position of dialogue box when main window is restored." New topic
Author

Adjusting the position of dialogue box when main window is restored.

Santhosh Gowd
Greenhorn

Joined: Nov 28, 2011
Posts: 13
I have a parent window and a dialogue box inside the parent window. Dialogue box is centered relative to the parent window.

Now, when I restore the parent window, the dialogue box should be automatically centered relative to the new window size. How can i achieve this?

I am using internet explorer 8. Change should reflect in all IE versions.
Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256
Hi Santhosh,

Just need a little more details,

1) Are you referring to a windows dialog box? I mean the basic one that you can create Javascript.
2) A dialog box of a user interface framework? For example a user interface tool like Flash has its own modal and non-modal dialog boxes.
Santhosh Gowd
Greenhorn

Joined: Nov 28, 2011
Posts: 13
I am referring to the windows pop up, created using Javascript. I mean, through Js, we redirect it to some jsp. So on the pop up window we are showing some other jsp.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

We have a separate forum for HTML and JavaScript. I'll move this thread to it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Adjusting the position of dialogue box when main window is restored.
 
Similar Threads
how to center this button 1
Select box disappears in IE6 when opening a jquery dialogue
How can you attach a file in email ?
Window.Opener Problem
Filtering the file names