Displaying 1 result from an estimated 1 matches for "holidays_list".
Did you mean:
holiday_list
2006 Jun 12
0
Not able to access global JS variable in Rails
Hie,
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
dynamically.
I am doing it at top of my page in script tag as
<script language="text/javascript">
var holidays = ''<%=@holidays_list%>'';
</script>
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.
Anand
--
Posted via http://www.ruby-forum.com/.