--- doc/window_handling.txt 2001/04/29 19:50:06 1.1 +++ doc/window_handling.txt 2001/05/03 16:48:39 1.4 @@ -40,3 +40,48 @@ function logout () { } } + + +The way that children windows of +loncapaclient should work: + +* need to track if they have ever been opened +* if not, + * open when needed + * never refer to any object properties + * which also means never close +* if currently open, + * just focus when needed + * close when needed + * can refer to object properties +* if have been closed, + * can refer to object properties + +The way loncapaclient window "should" work. +* lonxml makes exceptions for some URI=resources like + * /res/adm/pages/menu.html + * bookmark stuff.html +* lonxml should by default + * a script command should follow the body tag + and + * name the window (loncapaclientURICHECKSUM) + * tell remote control it exists + * remote control checks clientwindow (opener) + and if opener.name is loncapaclientURICHECKSUM + it changes this to loncapaclient + + +window instance <-- invoked from menu.html, but can be referred + to from other children windows + + status (has it ever been opened, is it closed, is it open) + +create_window_dependency(base,offshoot) <-- "offshoot" window + should only be open if "base" window is open + +remove_window_dependency(base,offshoot) + +close_window +open_window +check_window +change_window +change_window_by_submission