A little more research and still no explanation as to why this is
happening... however, I did find that this seems to happen because my
method (getEvents) is making ajax calls and may trigger other events
in the DOM/browser, which may be flushing out the href from the
calendar... My current work-around was to do the following:
$(ele).datepicker(
"dialog",
'',
function(){
setTimeout(function() {
getEvents();
}, 100);
},
{dateFormat: 'yymmdd'},
[200, 200]);
I basically "queue" up my method for execution after returning to
datepicker.
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
-~----------~----~----~----~------~----~------~--~---