how to get a date in modified showlightbox event

Hello friends.

I’m have an customized form uesd instead of lightbox. but I cant get the clicked date in the form.

someone have an idea?

Hi, did you try .getActionData method? scheduler.getActionData(DOMEvent).date

I try,

scheduler.showLightbox = function(id)
{
var data = scheduler.getActionData(DOMEvent).date;
alert(data);
}

but dont show nothin.

Srry, I dont edit other post.

is my code and this code dont working

scheduler.showLightbox = function(id)
{
var action_data = scheduler.getActionData(id);
var date = action_data.date;
alert(date);
}

the function showLightbox receive id instead of event, this is problem?

getActionData requires native html event as parameter
When overriding showLightbox you can’t access the native event, the best thing which can be obtained

scheduler.getEvent(id).start_date

To access raw data you may try to use

scheduler.attachEvent("onDblClick", function(ev){ alert(scheduler.getActionData(ev).date); });

Thanks,

scheduler.getEvent(id).start_date, thats was all I need.

:smiley: