title: JavaScript error "Access is denied" in internet explorer
body: <p>I am getting this error when i run my webpage in IE(the code runs fine in other browsers).</p>
  
  <p>This is the HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;--- some html code ---&gt;
  &lt;iframe src='http://localhost/page1.php' style="background: transparent; overflow: hidden; height: 210px; width: 390px;" frameborder="0"  /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is page1.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;form action="usercheck.php" method="POST"&gt;
  USERNAME:&lt;input name="uname" id="uname" type="text" maxlength="12" required/&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is usercheck.php</p>
  
  <pre><code>&lt;?php
  //some php code    
  ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;--- some html code ---&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is that when reach <code>usercheck.php</code> after clicking on submit button in <code>page1.php</code> i get the error <code>http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js. Access is denied.</code> Here is an image of the error: <a href="http://i.stack.imgur.com/diCoF.jpg" rel="nofollow">http://i.stack.imgur.com/diCoF.jpg</a> . Then consequently i get the error that '$' symbol is not defined(which is due to the failure to load the jquery library).</p>
  
  <p>EDIT-
  I have tried including the jquery file in my server but still the error is comming. I have also tried this code for usercheck.php:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
  //@ sourceMappingURL=jquery.min.map
  //and the rest of the jquery library...
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;--- some html code ---&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The error i am getting this time is this:<a href="http://i.stack.imgur.com/hR9aN.jpg" rel="nofollow">http://i.stack.imgur.com/hR9aN.jpg</a> (The original name of usercheck2.php is rscheck.php in my server). Then consequently i get the error that '$' symbol is not defined(which is due to the failure to load the jquery library). If i directly open the contents of page1.php (by the url- localhost/page1.php) then everything works fine.</p>
  
  <p>This is the only code for which i am using JQuery:</p>
  
  <pre><code>if($("#pret").contents().text().search("NAMECHECK: NOTAVALIBLE")!=-1)
  </code></pre>
  
  <p>I could exclude jquery only if i can convert this code to javascript.</p>