From: Jack_Speranza <jsp...@gr...> - 2000-10-26 14:26:25
|
Hi Scott (and all) -- Thanks for responding (thanks to Robert, too!)... After reading your messages I (once again) opened up the dynapi.js file to make sure I hadn't overlooked the getDocument method. It's NOT there! I've also looked in the other api files (Dynlayer.js, Dyndocument.js, etc.) to make sure it wasn't in one of the library files. Alas, it's just not to be found (I suspect it wasn't in my previous version, though I haven't opened up the old library to look). I'm working on a project that's deliverable on Monday. I'd like to use the new release, as I suspect it cleans up a lot of relatively "minor" problems I was encountering (dragging layers was a little buggy, memory leaks, etc.). Is there another source for the more recent dynapi.js file that I can download? (like Il Maestro's site or Pascal's?) Thanks for getting back to me... Jack -----Original Message----- From: Scott Andrew LePera [mailto:sc...@sc...] Sent: Wednesday, October 25, 2000 5:31 PM To: dyn...@li... Subject: Re: [Dynapi-Help] New DynAPI release and DynDocument Events Hi Jack, welcome to the list. Hm, the getDocument method should be part of the DynAPI object in dynapi.js and if yours is missing, then there's something seriously wrong with the distribution. Another bug may be this: DynAPI.getDocument(realsrc.elm) I don't know who put this in, but doesn't getDocument require an ID, not an object? Maybe it should be: DynAPI.getDocument(realsrc.elm.id) I'd like to hear what the list thinks. Jack_Speranza wrote: > > Hello gang -- > I've been continuing to play around with trying to create and > manipulate DynLayers between frames, and was starting making some headway. > Unfortunately, after downloading the most recent release from SourceForge, > I've encountered an error that I'm simply not smart enough to untangle. I'm > loading my DynAPI code into a menu frame and creating all my DynLayers from > there. On load, my target frame invokes functions sitting resident in my > menu frame that make the target a DynDocument and add my layers accordingly. > This was all working fine under the previous release. > > In my current experiment, I'm simply looking to add a DynLayer to my > target frame that I can drag around (nothing fancy at all!). My code > relating to this is as follows: > > target = new DynDocument(parent.main) > > lyrHelp = new DynLayer(null,390,65,150,150) > target.addChild(lyrHelp) > > DragEvent.setDragBoundary(lyrHelp) > DragEvent.enableDragEvents(target,lyrHelp) > > Everything loads OK, but as soon as I move my mouse anywhere over my target > frame, I bomb out. The api.events.js code I had been using is drastically > different from what is in the new release. The new release bombs out in the > DynDocument.EventMethod at -- "if (!src) { > src=DynAPI.getDocument(realsrc.elm)" (the error message is that the object > doesn't support this property or method). I've looked through the various > files, and cannot find the DynAPI.getDocument() method in this new release. > Does it exist? Is this even my problem? I'm really looking forward to the > day when I know this API (and JavaScript and OOP) as well as the rest of you > :-) Thanks for your help! > > ****************************** > Jack Speranza > Web Developer > Gryphon Networks > (781) 255-0444 x129 > jsp...@gr... > <www.gryphonnetworks.com> > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |