title: How is the scope different for ajax methods
body: <p>I'm trying to call a JS method that uses ajax and jQuery from a .js file. I have the JS method defined in a .htm file, and I have access to some, but not all of the defined methods</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/script.js"&gt;
     function testingAjax() {
        $.ajax({
           type: "GET",
           url: 'IISHander1.cs/DeleteItem',
           data: "",
           contentType: "application/json; charset=utf-8",
           dataType: "json",
           success: function (msg) {
             alert("success on all frontiers");
           },
           error: function (e) {
             alert("Something Wrong.");
           }
        });
     }
  &lt;/script&gt;
  </code></pre>
  
  <p>and I have another script right under that which defines:</p>
  
  <p><code>function testingScope() { alert("in Scope");}</code></p>
  
  <p>I've tested both and I can only call testingScope. The other results in a method not found error. Why is this?</p>