[Ironruby-core] Passing a callback to ScriptObject.Invoke

Sean Clark Hess seanhess at gmail.com
Fri Aug 22 16:23:44 EDT 2008


sure, I'll cook one up really quick

On Fri, Aug 22, 2008 at 2:21 PM, Tomas Matousek <
Tomas.Matousek at microsoft.com> wrote:

>  Can you send a small example of what you're trying to do? Is it browser
> native JavaScript or managed DLR JScript?
>
>
>
> Tomas
>
>
>
> *From:* ironruby-core-bounces at rubyforge.org [mailto:
> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Sean Clark Hess
> *Sent:* Friday, August 22, 2008 11:06 AM
> *To:* ironruby-core at rubyforge.org
> *Subject:* [Ironruby-core] Passing a callback to ScriptObject.Invoke
>
>
>
> Hi everybody,
>
>
>
> I'm plugging in to an existing javascript library using invoke.  I can
> successfully call my_js_object.invoke and get it to call different
> functions.
>
>
>
> They implemented a function called Observe that accepts a callback (event
> system).  How can I tie in to javascript events with ruby?  I can pass
> values, like js_object.invoke "Observe","EventName", but it doesn't really
> work to put a block as the last (the callback) parameter.
>
>
>
> Any ideas?  How can I do this?
>
>
>
> Thanks
>
> ~sean
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080822/a9fe4a0b/attachment.html>


More information about the Ironruby-core mailing list