I want to add an overlay e.g. a div that is positioned absolute with some message in there, but want it to follow the same 'hirachy' than normal touch elements and would like to know the proper procedure for it.
To try it out I added a DIV to the index.html with display:none and assigned all the CSS styles to it. Then in the app I change the display style to block which makes it visible (with a z-index of 1). The problem I have now is that if I call e.g. an ActionSheet or Popup that it is behind this displayed DIV. I also tried to add a zIndex of 2 to the Actionsheet but it doesn't bring it in front.
I'm sure there is a better way to this and 'hook' it into the Touch hirachy (and also probably create it programatically so that I don't have to add it to the index.html prior of actually needing it) so that I can call this absolute overlay and the actionsheet would be displayed over it with the modal mask etc.
Any help is greatly appreciated!