Thanks. That worked, now I can put 'both' for the datepicker to show.
However, it's an ugly hack and makes the inputs to flicker, but for me
it's enough.

On Sep 14, 9:18 pm, orak <[EMAIL PROTECTED]> wrote:
> Hi,
> I take thedatepickeras standalone version and see the same
> behaviour.
> I set the showOn to "both" -> can see the dialog popup
> set the showOn to "buttom" don't see it.
> I think the reason is, that calling setDate sets the focus and so 
> thedatepickerappear.
> By the way: I have 2 Datepickers both with class iDate and only the
> last one appears.
> The following lines seems to solve the problem for me:
>          $('.iDate').datepicker("disable"); //sonst bekommt er den
> focus und der picker erscheint
>          $('.iDate').datepicker("setDate",new Date(2009,0,4)); //
> vorsicht januar ist 0
>          $('.iDate').datepicker("enable");
> Karsten
>
> On 27 Aug., 10:30, getaceres <[EMAIL PROTECTED]> wrote:
>
> > I have the same problem as you.Datepickeropens and is not closeable.
> > Did you resolve it?
> > As a workaround, I'm thinking of setting the date in text directly in
> > the input, but as the date format depends on thedatepicker
> > internationalization, is there a way to get the date format used in 
> > adatepicker?
>
> > On 4 ago, 22:43, Adam <[EMAIL PROTECTED]> wrote:
>
> > > I have a date selection field that can also be automatically updated
> > > via other options (for example a "last two weeks" text link) and so I
> > > need to calldatepicker('setDate'...) behind the scenes to keep it
> > > synced with this selection. But after setting the date, setData also
> > > triggers todatepickerto appear, in its expected position, but such
> > > thatdatepicker('hide') and the visible "close" button will not make
> > > it disappear!
>
> > > Is this the intended behavior? Is there a way to avoid it?
>
> > > I've cut the example down to the following bare minimum:
>
> > > html:
> > > <input id="start-date"/>
>
> > > js:
>
> > > $("#start-date").datepicker();
>
> > > This works absolutely fine and as expected. If we go into firebug and
> > > try to set the date and not show thedatepicker:
>
> > > $("#start-date").datepicker('setDate', start-date).datepicker('hide');
>
> > > Thedatepickerflies up and cannot be closed by the javascript blur()
> > > ordatepicker('hide') or by the interface "close" button, but only if
> > > anotherdatepickeron another form element is triggered.
>
> > > I would appreciate assistance.
>
> > > Thank you,
>
> > > Adam

--~--~---------~--~----~------------~-------~--~----~
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