search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Creating Event on menu

Asked by Stéphane
14 years ago.

Hi all

In my Scheduler, I can add events with the javscript function createEvent(start, end, resource) that is proposed in the exemple.

I would like know to add in the menu, the same thing as the following code:

<DayPilot:MenuItem Text="Add an event " Action="JavaScript" JavaScript="javascript:createEvent(e.start.toString(),e.end.toString(), e.resource);"></DayPilot:MenuItem>

--> Here, I am reusing the same javascript code.

It doesn't work.... It says :function(){return new daypilot.date($r.data.Start)}

If someone can help me...

Thanks


This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.