title: Salesforce Page auto update upon update of database
body: <p>I have the following page that shows documents from database, what  I'm trying to accomplish is to make this page refresh or update automatically if a new document is added in the database. Is there a way I can use AJAX or pulling or something in my controller or page to accomplish that ?</p>
  
  <p>Page:</p>
  
  <pre><code>    &lt;apex:pageBlockTable value="{!docs}" var="d" rendered="{!NOT(ISNULL(docs))}" Title="Documents"&gt;  
          &lt;apex:column headerValue="Name"&gt;
                 &lt;apex:outputText value="{!d.Name}"/&gt;           
         &lt;/apex:column&gt;   
     &lt;/apex:pageBlockTable&gt;
  </code></pre>
  
  <p>Contoller</p>
  
  <pre><code> public List&lt;FTPAttachment__c&gt; getDocs()
      {
          docs= [Select Name from FTPAttachment__c where Case__c  = :cse.id];
          return docs;
  
      }
  </code></pre>