From: Michael P. <mp...@ph...> - 2001-02-23 00:01:31
|
oops. I modified the code to work in dynapi/file instead of afroapi/file. I figured it would be easier that way. Check url.js to see where it is looking for the applet. Richard Bennett wrote: > I'm trying to get this working, but I get this error (IE+NS) what am I doing > wrong? > > ------------------------------------------------------------ > JavaScript Error: file:///C|/My Documents/My Webs/dhtml/daily > snapshots/Copy (2) of dynapi3/dynapi/src/lib/afroapi/file/url.js, > line 6: > unable to reflect applet "urlLoad", index 0 - not loaded yet?. > --------------------------------------------------------- > > This is the source; > ---------------------------------------------------------- > <script language="Javascript" src="../src/dynapi.js"></script> > <script language="Javascript"> > > DynAPI.setLibraryPath('../src/lib/'); > DynAPI.include('dynapi.api.*'); > DynAPI.include('afroapi.file.io'); > DynAPI.include('afroapi.file.url'); > > </script> > <script language="Javascript"> > > DynAPI.onLoad = function() { > > block = new DynLayer(null,200,200,200,200); > DynAPI.document.addChild(block); > block.setURL('../clock.html') > > }; > > </script> > ---------------------------------------------------------- > > Thanks, > Richard. > > ----- Original Message ----- > From: "Michael Pemberton" <mp...@ph...> > To: <dyn...@li...> > Sent: Thursday, February 22, 2001 6:09 AM > Subject: [Dynapi-Dev] Dynamic Content Loading (IT WORKS) > > > I now have it working in both NS and IE (only win tested) and can't see > > any bugs. (I should open my eyes) > > > > Just place all the files in their own directory called "file" in your > > libs directory. > > > > Then all DynLayer's will have a new method called setURL: > > DynLayer.prototype.setURL=function(url,js,noevt) > > > > url is the location of the file. > > this can be relative to the current main page or absolute. > > it MUST only be on the current domain, java does not allow external > > server downloads > > js > > do you wish any found javascript to be executed? > > noevt > > do you wish the load events to be triggered? > > > > -- > > Michael Pemberton > > mp...@ph... > > ICQ: 12107010 > > > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev -- Michael Pemberton mp...@ph... ICQ: 12107010 |