Hi,

Now i've got something working, with the following code :

                $("#datepicker").datepicker({inline:true})
                $(".ui-state-default").click(function (e) {
                var jour = $(this).html();
                        var mois = $(".ui-datepicker-month").html();
                        var year = $(".ui-datepicker-year").html();
                        var startDate = new Date(year, month, jour);
                        $("#calendar").weekCalendar("gotoWeek", startDate), $
("#masque").show(), $("#calendar").show("slow");
                        return false; });
But i've still a big problem when i change month the function $(".ui-
state-default").click(function (e) doesn't work,

Any idea ?

Thks for your hlp



On 12 oct, 18:55, bronson <[email protected]> wrote:
> Hi every body,
>
> I'm in trouble with an inline datepicker. I want to get the date on
> which i cliked to make an startdate for the week calendar's launch.
>
> I've tried to implent onSelect, the main page head  as :
> $j("#datepicker").datepicker({
>       onSelect: function(dateText, inst) { alert('dateText')}
>
> });
>
> I've also tried to implent onClick the main page head  as :
>
> $j("#datepicker").click({
> var day = $j(this).html())}
> var month = $j(".ui-datepicker-month").html();
> var year = $j(".ui-datepicker-year").html();
> var startDate = new Date(year, month, day);
> alert(startdate);
>
> });
>
> Nothing works.
>
> Any help would be appreciated
>
> Many tks
--~--~---------~--~----~------------~-------~--~----~
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