shifty
04-16-2009, 04:53 PM
1) Script Title: Dhtml window widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: First off, love the script - very light and easy to implement!
I'm using the script to load popup windows from an ajax loaded control panel area, via links in numerous datagrids. At times the user will click on a link which opens a popup window, and in that window has a link which pops up a second window (referenced from the parent window, so they are parallel).
My first issue was that if a user opens 1 window, then opens the second, at times the second would show up under the first - this was fixed by calling the show() function any time a window is loaded. It does not work, however, when they are continuously called in succession.
For example:
If a user clicks on link #1, which opens window #1, then clicks on link #2, which opens link #2, the #2 window now shows on top of all, which is correct. If, however, #1 and #2 are open together, and the user clicks on another link in the parent window which would normally open window #1, the content in window #1 changes but it does not increment the window #1 z-index and remains hidden behind window#2. If you click on the drag bar, it focuses correctly, of course - but unless you close #2, or click on the drag bar of #1, #1 will remain behind #2.
Is there an easy way of incrementing the z-index of a window any time it is called, regardless if it exists or not, to insure that they are always incremented to the top of the z-index list?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: First off, love the script - very light and easy to implement!
I'm using the script to load popup windows from an ajax loaded control panel area, via links in numerous datagrids. At times the user will click on a link which opens a popup window, and in that window has a link which pops up a second window (referenced from the parent window, so they are parallel).
My first issue was that if a user opens 1 window, then opens the second, at times the second would show up under the first - this was fixed by calling the show() function any time a window is loaded. It does not work, however, when they are continuously called in succession.
For example:
If a user clicks on link #1, which opens window #1, then clicks on link #2, which opens link #2, the #2 window now shows on top of all, which is correct. If, however, #1 and #2 are open together, and the user clicks on another link in the parent window which would normally open window #1, the content in window #1 changes but it does not increment the window #1 z-index and remains hidden behind window#2. If you click on the drag bar, it focuses correctly, of course - but unless you close #2, or click on the drag bar of #1, #1 will remain behind #2.
Is there an easy way of incrementing the z-index of a window any time it is called, regardless if it exists or not, to insure that they are always incremented to the top of the z-index list?