my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Controling the Z-Index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Controling the Z-Index" Watch "Controling the Z-Index" New topic
Author

Controling the Z-Index

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
In my application I have several page fragments poping up for various user input. What is a good way to control the z-index so the current page fragment will appear on top of the calling page?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Set the z-index property.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
Bear Bibeault wrote:Set the z-index property.


I realize that but is there a prefered method to keep up with the current page z-index so the called page can read this value and make sure called page's z-index is greater?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Not at all sure what you mean by "called page".

Regardless, you can use jQuery (or standard DOM API in modern browsers) to get the computed value of z-index for any element.
 
Consider Paul's rocket mass heater.
 
subject: Controling the Z-Index
 
Similar Threads
Text with Mouse
Making sure no user input is allowed whilst server is processing...[ajax for jsf]
popup windows for Html Forms
JQuery table manipulation
Request.getparameter returning null