title: Offline mode app in a (HTML5) browser possible?
body: <p>Is it possible to build an application <em>inside</em> in browser? An application means:</p>
  
  <p>1 Where there is <strong>connection</strong> (online mode) between the browser and an remote application server:</p>
  
  <ul>
  <li>the application runs in typical web-based mode</li>
  <li>the application stores <em>necessary</em> data in offline storage, to be used in offline mode (2)</li>
  <li>the application sync/push data (captured during offline mode) back to the server when it is resumed from offline mode back to online mode</li>
  </ul>
  
  <p>2 Where there is <strong>no connection</strong> (offline mode) between the browser and an remote application server:</p>
  
  <ul>
  <li>the application will still run (javascript?)</li>
  <li>the application will present data (which is stored offline) to user</li>
  <li>the application can accept input from user (and store/append in offline storage)</li>
  </ul>
  
  <p>Is this possible? If the answer is a yes, is there any (Ruby/Python/PHP) framework being built?</p>
  
  <p>Thanks</p>