From: Pascal <pb...@oi...> - 2001-01-10 13:44:45
|
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 = 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 > |