Syntax php-Connect

Hi,
I try to make my calendar available for mobile.
Sorry, for the question, but what is the right syntax for the mobile version?
Here my “normal” init:

function init() {
...
scheduler.load("dhtmlxscheduler/common/cal_data.php?user=1&uid="+scheduler.uid());
		
		var dp = new dataProcessor("dhtmlxscheduler/common/cal_data.php?user=1");
		dp.init(scheduler);

This seems not ok!?

[code] dhx.ready(function(){
dhx.ui.fullScreen();
dhx.ui({
view: “scheduler”,
id: “scheduler”,
save: “dhtmlxscheduler/common/cal_data.php?user=1”
});

        $$("scheduler").load("dhtmlxscheduler/common/cal_data.php?user=1");
     });

[/code]

You should define “scheduler” type ( “json” is default):

$$(“scheduler”).load(“dhtmlxscheduler/common/cal_data.php?user=1”,“scheduler”);

“scheduler” type configures parser to process xml with the same format as desktop version of scheduler.

Hi Alexandra,
thanx for your tip, it works.

Must I notice this “scheduler” also in the save-statement?:

save: "dhtmlxscheduler/common/cal_data.php?user=1"

Regards

Hi,

Must I notice this “scheduler” also in the save-statement?

Nope. Data type should be defined only in load method.

Thank you!