|
From: <rua...@ee...> - 2001-01-10 14:01:26
|
You're right about that (line 177-179 of DynLayer.js), it creates a reference to the object as a string. I hadn't seen that, very smart = idea. Thanks -----Mensaje original----- De: Pascal [mailto:pb...@oi...] Enviado el: mi=E9rcoles 10 de enero de 2001 14:45 Para: dyn...@li... Asunto: RE: [Dynapi-Dev] slide extension normally (if I'm not mistaking) Javascript will call the toString() of = an object in this case of the setInterval(). The DynLayer object contains = this method toString() which sort of identifies the object itself to = Javascript.. that's why it works correctly. I think.. :) Pascal Bestebroer (pb...@oi...) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens > rua...@ee... > Verzonden: woensdag 10 januari 2001 14:23 > Aan: dyn...@li... > Onderwerp: [Dynapi-Dev] slide extension > > > I've been looking at one bit that has me baffled. I've been > having a look at > the slide() method for the DynLayer and what I can't figure > out is how the > following line works. > > this.slideInterval =3D setInterval(this+".slide()",speed) // line 34 = in > slide.js > > To learn how the DynAPI works I've been trying to see if I > could recreate > it. So I have a layer obect that is very much like the > DynLayer object (only > has the css properties, none of the parent-child interface). > Whenever I try > to set the interval to start the slide I get an error message > because the > <code>this</code> is evaluated and turned into a string and I get the > following error: > IE: object is not defined (ie turns the reference to the object into > '[object]' ) > NS: missing ] after element list. (ns: '[object Object]') > > Any ideas, > Ruairi > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |