Hi Yoann

It would be useful to be able to see your code.

Are you trying to invoke a method on a widget at a fixed time interval?

Best wishes

Jeremy



On Tue, Nov 12, 2013 at 12:50 AM, Yoann Babel <[email protected]> wrote:

> Another question :
>
> Now my widget is OK, I can draw an animated pendulum inside.
> I would like to add the animation function as a parameter.
> So I add a parameter to my widget :
> <$mycanvas animation="pendulum">
>
> I get the parameter in the execute() function.
> I create a tiddler with my animation function "pendulum.js" with type
> "application/javascript".
>
> Then I want to execute my function with something like :
>
>    - window[this.displayFunc](this.canvasDomNode);
>    - (eval(this.displayFunc))(this.canvasDomNode);
>
> Neither worked. I tried to add a type:command / type:utils / type:global
> to my pendulum.js tiddler. But it didn't worked.
>
> I have no clue how to define and call this function from the widget.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to