Hello,
Is it possible to use dhtmlx.alert with a xml-file, where you define the type ,text and title of the alert.
regards,
Laurens
Hello,
Is it possible to use dhtmlx.alert with a xml-file, where you define the type ,text and title of the alert.
regards,
Laurens
Nope, the js api of dhtmlx message is quite simple, it can’t load data from xml or any other formatted file. Only direct js command execution is possible.
I find another way to make the message from a xml-file
form1.send(“php/s3dpherinzetform.php?id=”+selectieid,“post”,function(loader, response){
var type1=loader.doXPath("//type")[0].firstChild.nodeValue;
var text1=loader.doXPath("//text")[0].firstChild.nodeValue;
var title1=loader.doXPath("//title")[0].firstChild.nodeValue;
dhtmlx.alert({
title:title1,
type:type1,
text:text1
});
});
The xml-file contains:
alert-error
tekst of message
Title
Regards,
laurens Bol