From: Peter C. <pc...@ca...> - 2000-11-21 19:30:07
|
At 10:17 AM 21/11/00 -0800, "SReindl" <SR...@la...> wrote: >From: "SReindl" <SR...@la...> >To: <dyn...@li...> >Subject: AW: [Dynapi-Help] Re: Problems with DynAPI2 and Dynacore > >It seems that u have to include at least the api package to initialize the >DynDocument. <snip> and "Pascal Bestebroer" <pa...@dy...> wrote: >From: "Pascal Bestebroer" <pa...@dy...> >Subject: RE: [Dynapi-Help] Re: Problems with DynAPI2 and Dynacore > >are you sure you'r using the latest dynapi.js file? > >also make sure to add these lines: > >DynAPI.include('dynacore.api.dynlayer.js') >DynAPI.include('dynacore.api.browser.js') >DynAPI.include('dynacore.api.dyndocument.js') > >which should make sure the DynAPI.document is always available. Stephan and Pascal - thanks again for your response. My last message was silly. I tried to strip the problem down to the smallest possible file, and in the process almost certainly converted it into a different problem with the same symptoms. I'm now going back to a simple version of the original problem. As before, this code work properly in IE5.5, but fails in NS4.73. I am using the 2000.11.07 version of dynapi.js. I assuming in the above includes "dynacore" should not be there - I use "DynAPI.include('dynapi.api.*') " (I tried naming each file explicitly - no difference.) Here is the new code: Demo.htm: ========= [[html]] [[head]] [[title]]Framesets[[/title]] [[/head]] [[frameset rows="100,*" cols="*"]] [[frame src="menubar.htm" name="menu"]] [[frame src="coolpage.htm" name="page"]] [[/frameset]] [[/html]] Coolpage.htm: ============ [[html]] [[head]] [[title]]Cool page[[/title]] [[/head]] [[body]]Cool page[[/body]] [[/html]] Menubar.htm: =========== [[html]] [[head]] [[title]]Demo[[/title]] [[script src="file:///C:/Tools/DynApi2/dynapi/js/dynapi.js"]][[/script]] [[script]] DynAPI.setLibraryPath("C:/Tools/DynApi2/dynapi/js/lib/") DynAPI.include('dynapi.api.*') DynAPI.onLoad=function() { coolpage = new DynDocument(parent.page) } [[/script]] [[/head]] [[body]]Demo[[/body]] [[/html]] In this code, when Demo.htm is loaded into IE, everything works - in NS, an error shows up in the javascript: window. Actually, the same problem occurs even if the onLoad function is completely commented out - the problem appears to be solely in the loading of the dynapi.js stuff into NS. However, I have no idea where things are going wrong at this point. -- Peter Curran Software Developer Casebank Technologies Inc. |