Live Update is a mode that provides synchronous data update in real time. When someone of users makes a change, it becomes visible to all others immediately. The mode uses the Faye socket library to make the process as fast and flexible as possible and doesn't require page refreshes (updates just a component it's applied to).
Live update can be applied to 4 components:
When you run the app with the enabled live update mode the following happens:
To activate Live Update for a component you should do the following steps:
<script type="text/javascript" src="http://localhost:8008/sync.js"></script> <script src="../codebase/live_update.js" type="text/javascript" charset="utf-8"></script>
var myDP = new dataProcessor("myconnector.php"); myDP.live_update("http://localhost:8008/sync");// the path to the JS Server myDP.init(mygrid);
To make it easy to learn the topic, you can go through step-by-step tutorial - Live updates in DHTMLX .
As you follow the tutorial, you will create a simple grid that accepts a user’s text input and updates it in real time. The simple steps introduce common information and useful tips needed for using the mode in app development.