Hello,
As you know I have been working on integrating DHTMLX scheduler to replace our old jquery calendar.
One of my last hurdles is the creation of events through the calendar. I have been unsuccessful in saving any events created to the server. Here is a snippet of my code
[code] scheduler.config.lightbox.sections=[
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“custom”, height:23, type:“timeline”, options:null , map_to:“section_id” }, //type should be the same as name of the tab
{name:“time”, height:72, type:“time”, map_to:“auto”}
]
scheduler.init('scheduler_here',null,"month>");
scheduler.load(["/calendar/get_data_1", "/calendar/get_data_2", "/calendar/get_data_3"]);
//does nothing…
var dp = new dataProcessor("/calendar/send_data");[/code]
Firstly, how can I send data to the server. From reading through the documentation is seems to be through dataProcessor. However I have had no luck. When I monitor the log through dp.init(scheduler); I see the following:
however I don’t know how to handle the incoming data as I cannot see anything happening through my firebug console.
Secondly, when creating the booking all of my “sections” are in the same drop down menu, even though they have come from 3 separate sources. As you can see I am loading from multiple sources, each of which source is coming from a different database. How can I direct Scheduler to create 3 different drop-downs that will then update only the relevant databases.
Our old calendar simply had a menu (asking what type of event should be booked) popup when a day was clicked in the month or week view. This then took the user to the relevant booking page with the correct date prefilled. Not great, but it worked. At the very least I would like to get this functionality working.
I hope you will be able to help me through this.
Thanks,
Tim