title: jquery ajax json url
body: <p>I've given up on trying to accomplish my intended objective! I have jquery/ajax code that is as simple as I can get it using web and library. I've been working on this several weeks; thank goodness I'm retired or I'd be without a job! I have never seen so much code that doesn't work on the net today. Most examples don't bother to show the url used in the ajax call! Anyway I've loaded up an htm file and a txt file. Please find something wrong, I am tired of looking, thx.</p>
  
  <p><strong>htm file</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;HTML&gt;
  &lt;HEAD&gt; 
  &lt;title&gt;testing&lt;/title&gt;
  
  &lt;script src="../jquery-1.11.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $("button").click(function(){
      $.ajax({url:"test.txt"})
      .success (function(result){ $("#comdisplay").html(result); });
  });
  &lt;/script&gt;
  
  &lt;/HEAD&gt;
  &lt;BODY&gt;
  
  &lt;center&gt;&lt;button&gt;&lt;h3&gt;Click&lt;/h3&gt;&lt;/button&gt;&lt;/center&gt;
  
  &lt;div id='comdisplay'&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>txt file</strong></p>
  
  <pre><code>&lt;h2&gt;howdy folks&lt;/h2&gt;
  </code></pre>
  
  <p>That's it, Thanks </p>