[Ironruby-core] Passing a callback to ScriptObject.Invoke
Jimmy.Schementi at microsoft.com
Mon Aug 25 19:32:39 EDT 2008
On 8/22/08 1:42 PM, "Sean Clark Hess" <seanhess at gmail.com> wrote:
Ok, I put the following in index.html in a blank ruby dynamic silverlight project
This is a really simple event system, with only one event, one listener... etc. It has a default handler you can trigger by clicking the link.
Then, here is app.rb
Uncomment line 10 to see that you have a handle on the js object. Line 11, however, throws an error no matter what I do.
I know I can use the HTML stuff to listen for a click directly, but I'm trying to plug into a js system that dispatches events this way, so I can't change the js interface.
Thanks for your help, and let me know if you have any more questions.
On Fri, Aug 22, 2008 at 2:23 PM, Sean Clark Hess <seanhess at gmail.com> wrote:
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:
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
Any ideas? How can I do this?
Ironruby-core mailing list
Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core