Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vince on Jul 24, 2009 08:28
open dhtmlx forum
dhtmlx scheduler default variables

Hi,

i'm trying to figure out the default variables for time, description and event name. I found "id" already but have a problem with others. I need to pass them to a function with onEventAdded event. The code i have so far:

        scheduler.attachEvent("onClick",function (id){
        window.open("../../index.php?mode=Calendar&handler=edit&actid=" + id, '_self');
});
I'd like to pass other variables to my php script, but i do not know their names.
Thanks for any help
Answer posted by Support on Jul 24, 2009 09:16
>>I found "id" already but have a problem with others.
You can use 

var ev = scheduler.getEvent(id);
var start = ev.start_date;
var end = ev.end_date
var text = ev.text
var desrc = ev.description

all properties which was defined in connectors code or xml  can be obtained as properties of event object in client side code