Sean, Iâ€™ll make sure to get back to you. I can run a ruby block given a
Let me know if this is urgent, and Iâ€™ll do it faster =)
On 8/22/08 1:42 PM, “Sean C. Hess” [email protected] wrote:
Ok, I put the following in index.html in a blank ruby dynamic
This is a really simple event system, with only one event, one
listener… etc. It has a default handler you can trigger by clicking
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.
Basically, I want to be able to pass a block of ruby code to be executed
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 C. Hess [email protected]
sure, I’ll cook one up really quick
On Fri, Aug 22, 2008 at 2:21 PM, Tomas M.
[email protected] wrote:
Can you send a small example of what you’re trying to do? Is it browser
From: [email protected]
[mailto:[email protected]] On Behalf Of Sean C.
Sent: Friday, August 22, 2008 11:06 AM
To: [email protected]
Subject: [Ironruby-core] Passing a callback to ScriptObject.Invoke
successfully call my_js_object.invoke and get it to call different
They implemented a function called Observe that accepts a callback
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?