title: Python Generated txt not recognized by AJAX .load
body: <p>Using AJAX the webpage updates as expected when the .txt file is manually changed then saved but the webpage does not update automatically after a python 2.7 logfile.close().</p>
  
  <p>The Python code populates jsVar variable then performs the following.</p>
  
  <pre><code>logfile = open('jsVar.txt', 'w')
  logfile.write(jsVar)
  logfile.close()
  </code></pre>
  
  <p>The following AJAX code is in the HTML file as a script.</p>
  
  <pre><code>  $(function(){
      $("#todayweather").load("jsVar.txt");
      $("#tomorrowweather").load("jsVar.txt #paragraph1");
      };
  </code></pre>
  
  <p>Problem: The webpage does not update automatically as expected. When I go into the jsVar.txt file using a text editor, make some changes the webpage updates automatically upon saving the file but does not when the python logfile.close() is executed.  Is there another method that should be incorporated in either the python code or the javascript/jquery to get the webpage to update automatically?      </p>