Sharing variables between ruby and javascript calendar

13 views
Skip to first unread message

abhis...@gmail.com

unread,
Sep 17, 2007, 6:10:23 AM9/17/07
to Ruby on Rails: DHTML Calendar
Hi,
I have got the flat calendar at http://wiki.rubyonrails.com/rails/pages/CalendarHelper
working :). Then I created a button outside the calendar using ruby.
On clicking the button the system should be able to detect the current
month. The current month is stored in a javascript variable. I tried
for days, but could not get it working. Is there any way to use the
Javascript variables in ruby? Thanks in advance.
Abi.

Jorge Calás Lozano

unread,
Sep 17, 2007, 10:07:42 AM9/17/07
to dhtml-c...@googlegroups.com
Hello Abi,

What about launch an ajax request to the server when de onClick event of the button occurs. It's just javascript but it doesn't alter the way you create the button.

Cheers,

Jorge.
Reply all
Reply to author
Forward
0 new messages