Hi,
Yes you're doing something wrong here. The beforeShowDay callback expects a
return result i.e. daySettings, but isn't getting it. Add a return value to
the dayfunct function like so:
function dayfunct(thedate)
{
// nothing here
return [true,''];
}
Thanks.
On Fri, Feb 6, 2009 at 6:18 PM, Alex Wilson <[email protected]> wrote:
>
> Hi, I am trying to use the Datepicker with beforeshowday with jQuery
> 1.3.1 and jQuery UI 1.6rc6. Here is my code:
>
> $(document).ready(function(){
>
> $("#dialog").datepicker(
> {
> beforeShowDay: dayfunct
> });
> });
>
> function dayfunct(thedate)
> {
> //not doing anything here, but will check against a list of dates
> and set css class
> }
>
> And this doesn't seem to work in IE or Firefox. Firefox gives me the
> following error:
> daySettings is undefined in jquery-ui.js on line 7243
>
> If I remove the beforeShowDay option, the datepicker appears
> correctly.
>
> Am I doing something wrong here, or is this a bug?
>
> Thanks
> Alex Wilson
>
> >
>
--
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, php, css, html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---