Topic: How to acces a js global variable.

Hie ,
I am defining a global variable for my dynamic calendar.
<script language="text/javascript">
  var holiday = '<%=@holiday_list%>';
</script>
But i am not able to get it in my function.
Please help!!!!!!!!!!111
Anand

Re: How to acces a js global variable.

What shows up in the rendered source code of your page (view -> source from the browser)?

vinnie - rails forum admin

Re: How to acces a js global variable.

Thanks vin,
I traced out the problem, it was in my <script> tag syntax, which some how i was not able to catch.
May be i need some rest smile

Thanks & Regards,
Anand Lal
Neev Technologies,
Bangalore,India.
anand@neevtech.com

Re: How to acces a js global variable.

No problem anand smile

vinnie - rails forum admin