From: Scott A. L. <sc...@sc...> - 2000-10-25 21:31:04
|
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 |