Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bobby on Jun 12, 2008 15:21
open dhtmlx forum
live data

I have live currency rates that I would like to display in the grid. I played around with the XMLAutoLoading, fuzzy on its application, sounds to me like its for additional data in large datasets, but do I have the ability to display live data automatically? Is there a function that will continuosly hit a php script to grab those rates?

Thanks
Answer posted by Support on Jun 13, 2008 02:30
In case of grid you can use updateFromXML functionality

    window.setInterval(function(){
       grid.updateFromXML(url);
    },1000)

updateFromXML will take data from server, but instead of full grid reloading it just update the existing cells with new data from XML

In case of tree you can check tree.smartRefreshBranch functionality , which works nearly the same