title: How to use Ajax/jQuery to update table with XML output of server process?
body: <p>I have an executable on my web server that outputs XML to a file or standard output. The XML contains data I would like to turn into a table. This XML will be unique per user and will change on a periodic basis.</p>
  
  <p>On my web page, I would like to:</p>
  
  <ol>
  <li><p>Trigger running this executable on a set period (e.g. 30 minutes) to refresh the XML data</p></li>
  <li><p>Parse this XML and dynamically add/remove table rows as the XML data changes between triggered runs</p></li>
  </ol>
  
  <p>For #2, I think I can use <code>$.ajax()</code> to grab the server-side XML file and work with its contents, using <code>innerHTML</code> to render a table and add it to the web page.</p>
  
  <p>I think the part I am stuck on is item #1. My web page is output from a Perl CGI script. Once the script is finished, the HTTP request is complete and there is no more communication between client and server.</p>
  
  <p>Do I need to have a separate process running on the server that puts an XML file somewhere where the jQuery Ajax call can find it as needed? (I'd like to avoid this, as I'd have to manage many separate processes and XML files, depending on where the users are on the web site, whether they are logged in, etc.)</p>
  
  <p>Or is there a cleaner way to have the client-side web page ask the web server to run a server-side executable, without reloading the web page? Something like a hidden form that, when triggered, can call an action without reloading the entire page?</p>
  
  <p>Sorry if these are dumb questions. Thanks for your advice.</p>