Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ken Brill on Sep 08, 2009 12:26
open dhtmlx forum
DHTMLScheduler - Google ical format

One of the last things I'd like to make work would be showing my google calendar on the scheduler. I tried just feeding it the ical link available on the settings page but that doesnt seem to work. Have you ever made this work with the tool somehow?

I could read it in and covert it to XML easy enough but it would be nice if it can work nativity.

thanks
Answer posted by Support on Sep 09, 2009 01:20
There can be a problem with cross-domain data fetching. 
Scheduler uses ajax calls to load a data in the ical format, so to be able to access the loaded data it need to be fetched from the same domain 

You can use simple proxy script 
        scheduler.load("proxy.php?url=some_url_here","ical");
where proxy.php just fetch the remote url and output it again. Because proxy script loaded from the same domain as main page it will bypass cross-domain limitation.