AJAX Sample Request

Stanislav

Could you provide a good example on how to do an AJAX call with callback and working with a template view?

Thanks

A lot about ajax

docs.dhtmlx.com/touch/doku.php?id=ajax

As for template, if you want to load template content ( not data ) by ajax, you can use

$$('mytemplate').define('src',"some.html");

as result template will make ajax call to some.html and will render its content inside related view. ( or course you can use php or any other kind of script )

Also, by native ajax , it can be done as

dhx.ajax("some.html", function(text){ $$('mytemplate').define('template',text); $$('mytemplate').render(); });