title: jQuery ajax calling javascript function
body: <p>I am using jQuery and Ajax.</p>
  
  <p>My MainFile has the following code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script src="Myscript.js"&gt;
          &lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function(){
                  $.ajax({
                      type: 'POST',
                      url: 'ajax.php',
                      success: function(data){
                          $("#response").html(data);
                      }
                  });
              });
          &lt;/script&gt;
  
      &lt;body&gt;
          &lt;div id="response"&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My ajax.php get the sample data</p>
  
  <pre><code>...
  MyScript.js has the following
  
  function display (text,corner)
  {
  
  }
  ..
  </code></pre>
  
  <p>I have Myscript.js. In this, I have a function called <code>display(text,corner)</code>. I have to call this function after executing ajax.php.</p>
  
  <p>How do I do it in jQuery for the above code?</p>
  
  <p>Is it possible to decide the order of execution after ajax.php and make call for <code>display(text,corner)</code>?</p>