marmachine
05-19-2014, 11:13 AM
DHTML Window widget
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
Issue:
I'm currently implementing the script on a multifunctionctional backoffice system with a large menu structure.
Since i want to keep the main page as a desktop with an overview, i'm opening all menu items/programs inside a DHTML Window, which is a great functionality... especially because it allows multiple floating panels, users feel familiar since it is like working in a "windows-like" environment.
However i have one problem rising here... opening a new Window inside a smaller browser window will place the controlbar outside the browser, also users dragging the windows outside the browserwindow will cause similar effect, causing the window to be unreachable. With the controlbar outside the window, users will never be able to reach it in order to move it back inside the window.
However i'm aware of the positioning function onclick="inlinewin.moveTo(400, 200); i would rather prefer to prevent moving outside in the first place, which actually might even be a nice additional setting to the script!?
Anyway, is there any way to prevent dragging a window to positions outside the browserwindow? Any help or ideas will be appreciated!
Many thanks
Marco
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
Issue:
I'm currently implementing the script on a multifunctionctional backoffice system with a large menu structure.
Since i want to keep the main page as a desktop with an overview, i'm opening all menu items/programs inside a DHTML Window, which is a great functionality... especially because it allows multiple floating panels, users feel familiar since it is like working in a "windows-like" environment.
However i have one problem rising here... opening a new Window inside a smaller browser window will place the controlbar outside the browser, also users dragging the windows outside the browserwindow will cause similar effect, causing the window to be unreachable. With the controlbar outside the window, users will never be able to reach it in order to move it back inside the window.
However i'm aware of the positioning function onclick="inlinewin.moveTo(400, 200); i would rather prefer to prevent moving outside in the first place, which actually might even be a nice additional setting to the script!?
Anyway, is there any way to prevent dragging a window to positions outside the browserwindow? Any help or ideas will be appreciated!
Many thanks
Marco