ooop
03-06-2007, 02:06 AM
1) Script Title: DHTML Window Widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: oddball effect when clicking link to open a 'pop-up' window that has been minimized...
________________________________
from the demos provided at the DHTML Window Widget's page the following oddball effect can be 'demonstrated' - at least for "Window 3 (Ajax content)" and "Window 4 (Content from a DIV on the page)"
[ don't know if effect would be present in "Window 1 (iframe content)" and "Window 2 (inline content)" examples IF they didn't open upon page load - didn't test such ]
________________________________
EFFECT:
when link is clicked to "Create/ Open Window" for a window that has already been opened and has a current state of 'minimized' the window is essentially 'restored' - BUT the 'restored' window still displays the 'restore' control button when it should be displaying the 'minimize' button > so a user has to "waste" a click on the displayed 'restore' button to get it to properly display (with associated functionality) the 'minimize' button...
did that make sense?
- here - i'll spell it out...
--- in demo click link to "Create/ Open Window 4"
--- then minimize the 'popup' window that opened
--- now click link to "Create/ Open Window 4" again
as you see it essentially 'restores' the 'popup' window but now with a defunct 'restore' button where a 'minimize' button should be...
__________________________________________________
possible solution....
in the "open" function first (or a.s.a.p.) run a check to see if window is currently 'minimized' if so jump to 'restore' function - else run rest of open's function...
- hope this helps ;)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: oddball effect when clicking link to open a 'pop-up' window that has been minimized...
________________________________
from the demos provided at the DHTML Window Widget's page the following oddball effect can be 'demonstrated' - at least for "Window 3 (Ajax content)" and "Window 4 (Content from a DIV on the page)"
[ don't know if effect would be present in "Window 1 (iframe content)" and "Window 2 (inline content)" examples IF they didn't open upon page load - didn't test such ]
________________________________
EFFECT:
when link is clicked to "Create/ Open Window" for a window that has already been opened and has a current state of 'minimized' the window is essentially 'restored' - BUT the 'restored' window still displays the 'restore' control button when it should be displaying the 'minimize' button > so a user has to "waste" a click on the displayed 'restore' button to get it to properly display (with associated functionality) the 'minimize' button...
did that make sense?
- here - i'll spell it out...
--- in demo click link to "Create/ Open Window 4"
--- then minimize the 'popup' window that opened
--- now click link to "Create/ Open Window 4" again
as you see it essentially 'restores' the 'popup' window but now with a defunct 'restore' button where a 'minimize' button should be...
__________________________________________________
possible solution....
in the "open" function first (or a.s.a.p.) run a check to see if window is currently 'minimized' if so jump to 'restore' function - else run rest of open's function...
- hope this helps ;)