Special Characters and error after scheduler.endLightbox

Hi guys from DHTMLX,

i created an custom lightbox which is working fine, saving Events and loading events. Perfect.
But I have two problems:

  1. I try to use German Special Characters like üäöß and have the connector set to
    $conn = new SchedulerConnector($res, “MySQL”);
    $conn->set_encoding(“ISO-8859-1”);

But the characters are still saved like Schlösser which has to be Schlösser.
How comes this?

  1. I try to leave the page after scheduler.endLightbox - command. Database entry is saved but an
    document.location.href=’…’;

raises an popup Error type: LoadXML Description: Incorrect XML…
How comes this?
No errors in Log file…

Could you help me to make it perfect?

Jens

Hi,
to resolve the first issue you can add this new line of code in your connector.php file

ConnectorSecurity::$xss = DHX_SECURITY_TRUSTED

By default the connector filters contents for prevent XSS attacks:
docs.dhtmlx.com/doku.php?id=dhtm … p_security

(1) try to add the next line to dataprocessor init

dp.enableUTFencoding(false);

(2) The data saving is async, so in moment of endLightbox data is still in saving process. The safe point to leave the page will be saving callback.

dp.attachEvent("onAfterUpdate", function(){ //now you can leave the page });

Hi Stanislav,

thank you for the reponses. You put it on the point.
Everything works perfect now.

What a great Calender!

Keep coding!