[jQuery] Re: ui.datepicker trouble

2008-07-15 Thread Stuart Batty
John, would you be willing to post the solution you had at work? I'm still trying to get this frackin' thing to work. Shawn-53 wrote: > > > Thanks John. Your tip pointed me in the right direction. > > Basically I changed my code from > > $("#mycontrol").datepicker("getDate") > to > $.datep

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread Shawn
Thanks John. Your tip pointed me in the right direction. Basically I changed my code from $("#mycontrol").datepicker("getDate") to $.datepicker._getInst($("#mycontrol")[0]._calId)._getDate() Had to go digging in the ui.datepicker code though to work out the specific function. (and confirm t

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread John Morrison
On Sun, June 15, 2008 7:48 am, Shawn wrote: > > I'm having a problem wit the ui.datepicker. Specifically > setting/getting the default date. I have the following function: > > function setDefaultDates() { >var temp = new Date(); >var sd = new Date(temp.getFullYear(), temp.getMonth(), tem

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread andrea varnier
On 16 Giu, 11:48, Shawn <[EMAIL PROTECTED]> wrote: > However, the docs found > athttp://docs.jquery.com/UI/Datepicker/datepicker#.22setDate.22dateendDate > (scroll to the bottom of the page), do not seem to indicate an object is > being used to pass the parameters. you're right, and maybe my sug

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread Shawn
Thank you Andrea. I will fire up the VMs for this project tomorrow (after I get some sleep), and test out your suggestion. However, the docs found at http://docs.jquery.com/UI/Datepicker/datepicker#.22setDate.22dateendDate (scroll to the bottom of the page), do not seem to indicate an objec

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread andrea varnier
On 15 Giu, 08:48, Shawn <[EMAIL PROTECTED]> wrote: >$("#criteriaStart").datepicker("setDate", sd); >$("#criteriaEnd").datepicker("setDate", ed); I think you're missing curly brackets here: $("#criteriaStart").datepicker({setDate: sd});