title: $ is not defined in iFrame
body: <p>I have a page with an iframe in it. my iframe page is iframe.php and my main page is main.php when i load iframe.php directly my jquery code executes fine, but when I load main.php (which contains iframe.php as an iframe) I get an error "$ is not defined". </p>
  
  <p>could this be because both main.php and iframe.php use</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>if so how can I use jquery in the iframe page without including this line?</p>