Ajax component use

I have no idea how to use Ajax.



I try the async call of Ajax:

dhtmlxAjax.post("./components/xxxxx/test1.php",params,callback_createGrid);



Into the php I fill the var grid_headings with some strings to be used as the Grid column titles. So, at the end of the php I call print ,

and that’s all.



Now, into the FireBug response text the content is:

, as I want to be.



But into the callback function (Client side) I check the var string and it is empty!



Please, have any ideas what is wrong?



Thanks

John

You can use it as
fucntion callback_createGrid(obj){
alert(obj.xmlDoc.responseText);
}

Also, grid can be fully configured from XML, so you can just use config from XML instead of additional ajax calls
dhtmlx.com/docs/products/dhtmlxG … 9009139000