From: Vancamp, T. (T.S.) <tva...@fo...> - 2001-03-16 17:46:13
|
Is there any way to "repaint" all of the dynlayers once dynDocument does a .load(newpage)? Project Background: First of all, I'm working with framed windows. I'm loading the dynAPI's in a header frame and creating a floating menu in the main display frame. When a user selects an item on the menu I do a menu.load(new page location) which loads the new page into the main display area. Is there any way of "repainting" my menu onto the new document or do I have to recreate the menu all over? It seems to me that all of the layer information is stored in the dyno document, I just can't figure out how to "repaint" them. I've tried .recreateAll() but that didn't seem to work. Any suggestions? Thanks in advance. This is some example code that I'm using in the header frame: DynAPI.setLibraryPath('/t525/dynapi/dynapi/src/lib/') DynAPI.include('dynapi.api.*') DynAPI.include('dynapi.NVHInc.systemMenuStyle.js') DynAPI.include('dynapi.gui.tvcpopup.js') DynAPI.include('dynapi.coreGui.label.js') DynAPI.include('dynapi.gui.loadpanel.js') DynAPI.include('dynapi.ext.float.js') DynAPI.include('dynapi.gui.dynimage.js') DynAPI.include('dynapi.api.dragevent.js') DynAPI.include('dynapi.util.thread.js') DynAPI.include('dynapi.util.pathanim.js') function BuildMenu() { mainWindow =new DynDocument(parent.mainFrame) /* create dyndoc for main display area. var menuwidth = 150 /* /* a bunch of menu building options /* upon clicking a menu item the script exec the JS command LoadPage('location of new page') /* tmp=MainMenu.add('HowTo',"javascript:LoadPage('/t525/nvh_system/isolation/li terature.html#sds')") tmp.SubMenu=HowToSubMenu /* /* MainMenu.Lock = 'true' mainWindow.addChild(MainMenu) MainMenu.Pop(5,1) MainMenu.floatLayer(mainWindow.id) /* ext crated to float the menu, need to pass the frame information. } DynAPI.onLoad=function() { BuildMenu() } function LoadPage(thePage) { mainWindow.load(thePage) } |