Thanks very much for the quick reply. Sorry to ask, I am a beginner, but where can I find the
download_ical.php from this function:
function download() {
var form = document.forms[0];
form.action = “./data/ical_download.php”;
form.elements.data.value = scheduler.toXML();
form.submit();
}
It’s me again. I tried everything now. The scheduler doesn’t write any entries to the ics file. The html file also writes to mysql. For now I would like to have both.
I have attached the .html file. Can anyone look over it please? I really need this to get to work.
No, scheduler.load is for loading data, not saving or exporting or anything. If you are loading your events from php/events.php - you should leave it this way. If you are really loading from both sources - they should be in separate load commands and the second one should specify that we are loading ical.
Now let’s check the code further:
var form = document.forms[0];
form.elements.data.value = scheduler.toICal();
form.submit();
That means - then you click on the ‘Save’ button current information will be exported as ical, that string assigned to form and form submitted.
Form submits to the “…/04_export/php/ical_writer.php” file where you can work with exported data and save it to a file, for example.