Forum: Ruby on Rails Not able to access global JS variable in Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Anand L. (Guest)
on 2006-06-12 22:29
I have a very genuine problem, may be i am unaware abt the method of
doing it.
I have to declare a global variable and have to give him a value
I am doing it at top of my page in script tag as
<script language="text/javascript">
  var holidays = '<%=@holidays_list%>';
I am using dyna arch calendar to implement the dynamic weekends.
But i am not able to get the value of this variable from my js method.
Please help!!!!!!!!!
Thanks in anticipation.
This topic is locked and can not be replied to.