AJAX Sample Request


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


A lot about ajax


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


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(); });