Is this the entire javascript? If so Model is not being created anywhere.
That is why it can't be found.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of anusha999
Sent: Tuesday, 20 July 2010 10:32 a.m.
To: [email protected]
Subject: Re: [jquery-ui] Highlighting of special days in datepicker


Hi,

I am trying to highlight certain days with events on the calendar....I have
to get the days from Model.

My code is as follows:

<script type="text/javascript">
 var datesArray = new Array();
   for (var item in Model) { 
     datesArray[datesArray.length] = "<%= item.PerformanceDate.Day %>";
   }
  $(document).ready(function()  {

   // Datepicker
   $('.datepicker').datepicker({
     inline: true,
     beforeShowDay: function (date) {
        var theday = date.getDate();
        if ($.inArray(theday, datesArray) <0) return [true, ""];
           return [true, "specialDate"];
        }

   });
});


It says item cant be found..cant we access model properties inside
javascript??

Please reply..

Thanks a lot!
Anusha


-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.

Reply via email to