From: Richard :o <ma...@ri...> - 2001-01-11 19:11:28
|
Hi, Basically you're effort is great, but: >the list takes 23 seconds to build on ... That would be totally useless as a tool in that case, and you'd have to use something else than treewidget. But that's not the case, either you didn't read the documentation properly, or I didn't explain it very well. IE uses a lot of memory if it has to render a lot of layers, and it doesn't flush the memory on reload. So the point of my tree widget is, that the contentLayers, ie the ones with all the links in them, are written together on one layer, only the nodes use their own layer. So once you have added a node to the tree like this: main=DynRef.add('Dynapi'); you add all your links like this: main.addNodeContent("setLibraryPath") main.addNodeContent("mountplugin") main.addNodeContent("include") main.addNodeContent("onload") main.addNodeContent("onunload") main.addNodeContent("onresize") And then tell the tree you've finished adding links like this: main.closeContent() Now main.addNodeContent("onresize") has two more parameters, one is the url, and one the image, so in this case it might be nice to show some information about the node onclick, instead of loading a link: main.addNodeContent("onresize","javascript: showInfo(\'This event is' +' fired when the browser is resized, and should recreateAll in NS, ' +'but doesn\'t always\'),"images/mainNode.gif"); ../.. ../.. etc function showinfo(node){ infoLayer.setHTML(node) } So the infoLayer should display the info on each node, and there would be a little icon infront of the link. If you get what I mean. Another thing is that you're using the latest release I suspect, instead of the latest snapshot (or my one), so you are documenting some extensions that don't exist any more, like sprite.js. That's the down-side of a hard-coded reference, it's already out of date on the day of release. That's why I made DynAPIDiagnose, which is included on each example, and gives you all the parameters available real-time. the problem is it gives all the browser-native properties as well, and I haven't as yet found how to limit it to only DynAPI methods. It's also very buggy, I'll be rewriting it with the fast-treeview widget once I understand all this precreation stuff, and the new widgetmodel. Of course if you are willing to update it regularly, I'd be more than happy to put it on the site (or mirror it) if you want. Oh, I almost forgot to say, I already rewrote it with the correct code, it renders in about 4 seconds now (download time not included) check here: http://www.resass.f2s.com/?menu=examples&node=10 If you decide to finish this job, it might be worth considering if you can't include the values from text files or something (or through php), so you don't have to edit your html each time. This is what I did for my "examples" tree, all the code is written on the fly by a php script, which checks the contents of directories on the server, and adds the nodes it needs. Cheers, Richard :o ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) ----- Original Message ----- From: "Nuno Ferreira" <nun...@wi...> To: <dyn...@li...> Sent: Thursday, January 11, 2001 5:52 PM Subject: [Dynapi-Dev] DynAPI Reference... > Hi people, > > Like I said in a previous posting, I started to compile > a list of DynAPI methods and functions (and afterwords I > will add the properties). > > For now I only have a list, based on the latest snapshot, > using Richard's Fast Tree Widget. > > What I need now, is for you people in the know, to take > a look a that list, and tell me about mistakes or incorrections. > > Also, I need some comments as to what items should be excluded > from the list due to being internal methods or functions, because > the main goal of the reference is to help beginners and not cause > even more confusion. > > Comments are welcome! > > Of course, a downloadable version in PDF or TXT will be created > when the deed is done :) > > The list is at http://www.wiz.pt/users/nf/dynapiref/dynapi_ref.html > > > Best, > > NunoF > > ps. Richard, the list takes 23 seconds to build on my computer, probably > because that's a lot of nodes, but each time I do a reload it takes longer > each reload (i'm using IE 5.5 on Win2k). > I concede it can be a mistake on my part, but it sure is weird, cause when > I close all browser windows, open a new one and reload, it cames back to > 23 seconds... > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |