title: How to update UI when data has changed?
body: <p>I have a series of XML files which can be retrieved, edited and saved by a User. My intention is to allow multiple Users to edit these files at the same time. Many parts of these XML files relate to content displayed in the browser UI for example a <code>&lt;name&gt;My title&lt;/name&gt;</code> node is displayed and can be edited.</p>
  
  <p>The technologies I'm using are Javascript, PHP, and a master XML file containing references to other XML files (both master and referenced files can be edited in the UI). The server is WebDAV enabled, and WebDAV methods are used via YUI3's io module to handle retrieval, saving, collection moving etc.</p>
  
  <p>How do I go about updating UIs where these resources are being used, based on the contents of the edited and saved XML file(s)?</p>
  
  <p>I know I could probably run setTimeouts and whatnot to check for updates, but it seems more intuitive to make the UI respond only when data is changed.</p>
  
  <p>cheers!</p>