Dave,
Thanks for the reply... I already have that in my <a> element and
still does not work (thus why it is so puzziling to me)... Here is
what my <a> element looks like:

<a href="javascript:void(0);" onclick="showDatePicker(); return void
(0);" title="Select Date">


Thanks.
Paul



On May 1, 4:02 pm, Fontzter <[email protected]> wrote:
> Try setting the href on your ele to return void:
>
> href="javascript:void(0);"
>
> Hth,
>
> Dave
>
> On May 1, 3:12 pm, "Paul T." <[email protected]> wrote:
>
> > Problem: when a date is selected (via mouse) the page is redirected to
> > '#'.
>
> > Code is:
>
> > $(ele).datepicker(
> >                 "dialog",
> >                 '',
> >                 getEvents,
> >                 {dateFormat: 'yymmdd'},
> >                 [200, 200]);
>
> > 'ele' is an <a> element I have on the page. my 'getEvents' method is
> > coded to return void(0), thus I would have expected the href= action
> > of the datepicker dialog to be suppressed, but it is not.  Looks like
> > the onSelect function is never called because the page is redirected
> > to '#'.
>
> > If I call the same code but leave onSelect function blank, I am able
> > to click on the days show on the calendar with no problem.  Can
> > someone help?
>
>
--~--~---------~--~----~------------~-------~--~----~
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