title: Calling PHP from document.ready
body: <p>Is there a way in document ready to call php scripts?</p>
  
  <p>I want to do something like this.</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function($) {
  
      &lt;?php require("readenglish.php"); ?&gt;
      &lt;?php require("readfrench.php"); ?&gt;
      &lt;?php require("readspanish.php"); ?&gt;
      &lt;?php 
  
      $opload = $_GET['opload'];
      if ($opload == "reade") {
  
      }
      else if ($opload == "readf") {
  
         echo "&lt;script type=\"text/javascript\"&gt;\n";
  
         echo "document.f1.r1[0].checked = false;\n";
         echo "document.f1.r1[1].checked = true;\n";
         echo "SelectRead();\n";
  
         echo "&lt;/script&gt;";
  
      }
  
      ?&gt;
  
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The three php scripts create divs and add information to them from an external domain php script.</p>