No, I have not solved it yet.

Tanveer Virani

On Dec 6, 2009, at 6:14 AM, Javier <[email protected]> wrote:

> did you solved this , i am very interested in something similar, i
> want to change the background - color of a range of dates example
> dates for summer from 21 jun to 21 sep .
> anyhelp will be welcome
>
> On 20 nov, 20:48, Tanveer <[email protected]> wrote:
>> I'm try to high light a select date ranges by using the beforeShowDay
>> callback.
>>
>> Here is my code:
>> $(function() {
>>   $("#staticCalendar").datepicker({
>>     beforeShowDay: function(date) {
>>     var curDay = date.getTime();
>>     if (1258268400000 <= curDay && 1258873199999 >= curDay) {
>>       return new Array(true, "ui-state-active", date.getTime());
>>     }
>>     return new Array(true, "", date.getTime());
>>   }});
>>
>> $.datepicker.setDefaults({showOtherMonths: true, dateFormat: 'mm/dd/
>> yy', changeMonth: true, changeYear: true});
>>
>> In this case, the daterange(Nov 15, 2009 to Nov 21, 2009 MST) only
>> has the border definition from the ui-state-active class, but not the
>> back ground.
>>
>> Any help in getting all of the day highlight with the active
>> background class would be greatly appreciated.
>>
>> Thanks,
>> Tanveer
>
> --
>
> 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 
> .
>
>

--

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