From: Geoffrey M. <gm...@51...> - 2000-11-26 17:12:41
|
I'm trying to load external content into a dynlayer using the loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting a series of errors as follows: dyndoc is not defined followed by: dynAPI is not defined The code I'm using is: <script language="Javascript" src="./js/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('./js/lib/') DynAPI.include('dynapi.api.dynlayer') DynAPI.include('dynapi.api.browser') DynAPI.include('dynapi.api.dyndocument') DynAPI.include('dynapi.api.events') DynAPI.include('dynapi.ext.slide') DynAPI.include('dynapi.ext.loadHTML-public') DynAPI.onLoad=function() { myLayer = new DynLayer() myLayer.setSize(100,100) myLayer.setBgColor('#c0c0c0') myLayer.moveTo(100,100) dynAPI.dyndoc.addChild(myLayer) myLayer.loadHTML('index.html') } Can anyone suggest a fix or is there a better .js file for loading external content into a layer? Thanks |
From: Richard :o\) <ma...@ri...> - 2000-11-26 20:07:35
|
hi, The most obvious mistake I see is that you are missing two dots.It should be : src="../js/dynapi.js"> and: DynAPI.setLibraryPath('../js/lib/') And check your directory-structure is correct. cheers, Richard:o) ----- Original Message ----- From: "Geoffrey Makstutis" <gm...@51...> To: <dyn...@li...> Sent: Sunday, November 26, 2000 5:14 PM Subject: [Dynapi-Help] loadHTML > I'm trying to load external content into a dynlayer using the loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting a series of errors as follows: > > dyndoc is not defined > > followed by: > > dynAPI is not defined > > The code I'm using is: > > <script language="Javascript" src="./js/dynapi.js"></script> > <script language="Javascript"> > > DynAPI.setLibraryPath('./js/lib/') > DynAPI.include('dynapi.api.dynlayer') > DynAPI.include('dynapi.api.browser') > DynAPI.include('dynapi.api.dyndocument') > DynAPI.include('dynapi.api.events') > DynAPI.include('dynapi.ext.slide') > DynAPI.include('dynapi.ext.loadHTML-public') > > DynAPI.onLoad=function() { > myLayer = new DynLayer() > myLayer.setSize(100,100) > myLayer.setBgColor('#c0c0c0') > myLayer.moveTo(100,100) > dynAPI.dyndoc.addChild(myLayer) > myLayer.loadHTML('index.html') > } > > Can anyone suggest a fix or is there a better .js file for loading external content into a layer? > > Thanks > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > ____________________________________________________________ > Get your FREE personal .com domain name and > NAMEzero Personal Portal at: http://www.namezero.com. > For customer service, mailto:cus...@na.... > > |
From: Andrew F. <an...@fo...> - 2000-11-27 14:17:39
|
Folks, First, please let me echo the comments of everyone here who has thanked the developers of this great package. It's a great learning tool as well as a useful package. I'm using the popup widget to display nested menus in a simple web application, and I'm having a problem with Internet Explorer. Every time I load the page containing the popup it takes a bit longer to load, and every time Internet Explorer 5.5 uses about 2 megs more of RAM. After loading the page 15 or 20 times it seems that the page loads instantly from the server, but there's a delay of 7 or 8 seconds before the browser displays the top popup. (This is on a 400MHZ P2.) (IE4.5 on the Mac never does get enough ram to display my popups even once. Netscape seems fine.) I've tried adding alert()'s to the onDelete functions of the various dynlayer-derived classes and verified that they're being called. If I can't fix this problem I'll have to scrap what I've done and use something other than these routines, and I don't want to do that. Does anyone else have this experience? Is there a workaround? I know there was a memory leak in innerHTML in IE 5.0, but it's supposed to have been fixed. Thanks! Andrew Forber |
From: <to...@in...> - 2000-12-02 06:27:38
|
El domingo 26 de noviembre de 2000 (17:14), Geoffrey Makstutis escribió: > I'm trying to load external content into a dynlayer using the loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting a series of errors as follows: > > dyndoc is not defined > > followed by: > > dynAPI is not defined > > The code I'm using is: > > <script language="Javascript" src="./js/dynapi.js"></script> > <script language="Javascript"> > > DynAPI.setLibraryPath('./js/lib/') > DynAPI.include('dynapi.api.dynlayer') > DynAPI.include('dynapi.api.browser') > DynAPI.include('dynapi.api.dyndocument') > DynAPI.include('dynapi.api.events') > DynAPI.include('dynapi.ext.slide') > DynAPI.include('dynapi.ext.loadHTML-public') > > DynAPI.onLoad=function() { > myLayer = new DynLayer() > myLayer.setSize(100,100) > myLayer.setBgColor('#c0c0c0') > myLayer.moveTo(100,100) > dynAPI.dyndoc.addChild(myLayer) > myLayer.loadHTML('index.html') > } Where I can download loadHTML-public please? I haven't seen it anywhere. Thanks -- Antonio Mármol Albert ( to...@in... ) |
From: Brandon M. <bnd...@ho...> - 2000-12-05 22:02:00
Attachments:
loadHTML-public.js
|
For all those that want to use loadHTML object: Check the case of dynAPI If the D in dyn should be caps. dynAPI --> DynAPI line 99: dyndoc.addEventListener(lqLoadEvent) : DynAPI.dyndoc.addEventListener(lqLoadEvent) Now. If the API has been changed back, and it doesn't support firing onLoad in the loadHandler of DynAPI object, there will be a problem, and you should move the DynAPI.loadQueuedHTML(); to the end of the loadhandler in the DynAPI object. There's another thing... I believe in the public release of DynAPI it's DynAPI.document not DynAPI.dyndoc. Simple search and replace will fix this. I made quite a few enhancements and speed increases to the core. It's quite stable. ----- Original Message ----- From: "Geoffrey Makstutis" <gm...@51...> To: <dyn...@li...> Sent: Sunday, November 26, 2000 5:14 PM Subject: [Dynapi-Help] loadHTML > I'm trying to load external content into a dynlayer using the loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting a series of errors as follows: > > dyndoc is not defined > > followed by: > > dynAPI is not defined > > The code I'm using is: > > <script language="Javascript" src="./js/dynapi.js"></script> > <script language="Javascript"> > > DynAPI.setLibraryPath('./js/lib/') > DynAPI.include('dynapi.api.dynlayer') > DynAPI.include('dynapi.api.browser') > DynAPI.include('dynapi.api.dyndocument') > DynAPI.include('dynapi.api.events') > DynAPI.include('dynapi.ext.slide') > DynAPI.include('dynapi.ext.loadHTML-public') > > DynAPI.onLoad=function() { > myLayer = new DynLayer() > myLayer.setSize(100,100) > myLayer.setBgColor('#c0c0c0') > myLayer.moveTo(100,100) > dynAPI.dyndoc.addChild(myLayer) > myLayer.loadHTML('index.html') > } > > Can anyone suggest a fix or is there a better .js file for loading external content into a layer? > > Thanks > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Max C. <ma...@bi...> - 2000-12-06 03:56:05
|
Afternoon Brandon, I would like to utilise your loadHTML method, but to date I am unable to gain a start. in the onLoad event mainpage.addChild(gridDiv) loadHTML('generic.html') I get an error on the following line (99) DynAPI.dyndoc.addEventListener(lqLoadEvent) Any suggestions, I was unable to follow the rest of your instructions in the Email. thanks Max ----- Original Message ----- From: "Brandon Myers" <bnd...@ho...> To: <dyn...@li...> Sent: Wednesday, December 06, 2000 9:03 AM Subject: Re: [Dynapi-Help] loadHTML > For all those that want to use loadHTML object: > > Check the case of dynAPI > If the D in dyn should be caps. > dynAPI --> DynAPI > > line 99: > dyndoc.addEventListener(lqLoadEvent) > : > DynAPI.dyndoc.addEventListener(lqLoadEvent) > > Now. If the API has been changed back, and it doesn't support firing onLoad > in the loadHandler of DynAPI object, there will be a problem, and you should > move the > DynAPI.loadQueuedHTML(); > to the end of the loadhandler in the DynAPI object. > > There's another thing... I believe in the public release of DynAPI it's > DynAPI.document not DynAPI.dyndoc. > > Simple search and replace will fix this. I made quite a few enhancements and > speed increases to the core. It's quite stable. > > > ----- Original Message ----- > From: "Geoffrey Makstutis" <gm...@51...> > To: <dyn...@li...> > Sent: Sunday, November 26, 2000 5:14 PM > Subject: [Dynapi-Help] loadHTML > > > > I'm trying to load external content into a dynlayer using the > loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting > a series of errors as follows: > > > > dyndoc is not defined > > > > followed by: > > > > dynAPI is not defined > > > > The code I'm using is: > > > > <script language="Javascript" src="./js/dynapi.js"></script> > > <script language="Javascript"> > > > > DynAPI.setLibraryPath('./js/lib/') > > DynAPI.include('dynapi.api.dynlayer') > > DynAPI.include('dynapi.api.browser') > > DynAPI.include('dynapi.api.dyndocument') > > DynAPI.include('dynapi.api.events') > > DynAPI.include('dynapi.ext.slide') > > DynAPI.include('dynapi.ext.loadHTML-public') > > > > DynAPI.onLoad=function() { > > myLayer = new DynLayer() > > myLayer.setSize(100,100) > > myLayer.setBgColor('#c0c0c0') > > myLayer.moveTo(100,100) > > dynAPI.dyndoc.addChild(myLayer) > > myLayer.loadHTML('index.html') > > } > > > > Can anyone suggest a fix or is there a better .js file for loading > external content into a layer? > > > > Thanks > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |
From: Max C. <ma...@bi...> - 2000-12-06 04:23:15
|
Hi again Brandon, I think I can throw some light onto my problem. The following codw works just fine. gridDiv = new DynLayer() gridDiv.setSize(intScreenWidth,intScreenHeight) gridDiv.setBgColor('lightslategray') gridDiv.moveTo(10,10) this.document.addChild(gridDiv) gridDiv.loadHTML('generic.html') gridDiv.css.borderWidth="2px" gridDiv.css.borderColor="#d4947f" gridDiv.css.borderStyle="solid" gridDiv.setVisible(true) However if I change to the following:- mainpage=new DynDocument(parent.page) gridDiv = new DynLayer() gridDiv.setSize(intScreenWidth,intScreenHeight) gridDiv.setBgColor('lightslategray') gridDiv.moveTo(10,10) mainpage.addChild(gridDiv) gridDiv.loadHTML('generic.html') gridDiv.css.borderWidth="2px" gridDiv.css.borderColor="#d4947f" gridDiv.css.borderStyle="solid" gridDiv.setVisible(true) then its NO GO Appears to be a problem handling the DynDocument? I hope I am helping and not causing more problems. Max ----- Original Message ----- From: "Brandon Myers" <bnd...@ho...> To: <dyn...@li...> Sent: Wednesday, December 06, 2000 9:03 AM Subject: Re: [Dynapi-Help] loadHTML > For all those that want to use loadHTML object: > > Check the case of dynAPI > If the D in dyn should be caps. > dynAPI --> DynAPI > > line 99: > dyndoc.addEventListener(lqLoadEvent) > : > DynAPI.dyndoc.addEventListener(lqLoadEvent) > > Now. If the API has been changed back, and it doesn't support firing onLoad > in the loadHandler of DynAPI object, there will be a problem, and you should > move the > DynAPI.loadQueuedHTML(); > to the end of the loadhandler in the DynAPI object. > > There's another thing... I believe in the public release of DynAPI it's > DynAPI.document not DynAPI.dyndoc. > > Simple search and replace will fix this. I made quite a few enhancements and > speed increases to the core. It's quite stable. > > > ----- Original Message ----- > From: "Geoffrey Makstutis" <gm...@51...> > To: <dyn...@li...> > Sent: Sunday, November 26, 2000 5:14 PM > Subject: [Dynapi-Help] loadHTML > > > > I'm trying to load external content into a dynlayer using the > loadHTML-public.js file (supplied by Brandon Myers). However, I keep getting > a series of errors as follows: > > > > dyndoc is not defined > > > > followed by: > > > > dynAPI is not defined > > > > The code I'm using is: > > > > <script language="Javascript" src="./js/dynapi.js"></script> > > <script language="Javascript"> > > > > DynAPI.setLibraryPath('./js/lib/') > > DynAPI.include('dynapi.api.dynlayer') > > DynAPI.include('dynapi.api.browser') > > DynAPI.include('dynapi.api.dyndocument') > > DynAPI.include('dynapi.api.events') > > DynAPI.include('dynapi.ext.slide') > > DynAPI.include('dynapi.ext.loadHTML-public') > > > > DynAPI.onLoad=function() { > > myLayer = new DynLayer() > > myLayer.setSize(100,100) > > myLayer.setBgColor('#c0c0c0') > > myLayer.moveTo(100,100) > > dynAPI.dyndoc.addChild(myLayer) > > myLayer.loadHTML('index.html') > > } > > > > Can anyone suggest a fix or is there a better .js file for loading > external content into a layer? > > > > Thanks > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |
From: Scott A. L. <sc...@sc...> - 2000-12-06 18:11:01
|
Hi Max, I think I found the problem: One, a typo in loadHTML: DynAPI.dyndoc should be: DynAPI.document Also, you'll notice that in loadHTML the loadqueue eventlistener is only added to the base dyndocument: DynAPI.document.addEventListener(lqLoadEvent) So this may need to be reworked if you have multiple dyndocuments, like in your second example. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com |
From: Brandon M. <bnd...@ho...> - 2000-12-08 17:08:49
|
Not so much a typo, as a neglect to fully modify for downgrading to previous API versions. I did, though, specify this as a problem in the code in my e-mail. ----- Original Message ----- From: "Scott Andrew LePera" <sc...@sc...> To: <dyn...@li...> Cc: <gm...@51...> Sent: Wednesday, December 06, 2000 1:11 PM Subject: Re: [Dynapi-Help] loadHTML > Hi Max, I think I found the problem: > > One, a typo in loadHTML: > > DynAPI.dyndoc > > should be: > > DynAPI.document > > Also, you'll notice that in loadHTML the loadqueue eventlistener is only > added to the base dyndocument: > > DynAPI.document.addEventListener(lqLoadEvent) > > So this may need to be reworked if you have multiple dyndocuments, like > in your second example. > > > -- > scott andrew lepera > ----------------------------------- > web stuff: www.scottandrew.com > music stuff: www.walkingbirds.com > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |