Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery .get/.post not working on ie 7 or 8, works fine in ff
    primarykey
    data
    text
    <p>I have basically this on a page:</p> <pre><code>&lt;script type="text/javascript"&gt; function refresh_context() { $("#ajax-context").html("Searching..."); $.get("/ajax/ldap_search.php", {cn: $("#username").val()}, function(xml) { $("#ajax-context").html($("display", xml).text()); $("#context").val($("context", xml).text()); }, 'xml'); } $(document).ready(function() { $("#username").blur(refresh_context); }); &lt;/script&gt; &lt;input type="text" name="username" id="username" maxlength="255" value="" /&gt; &lt;input type="hidden" name="context" id="context" value=""/&gt; &lt;div id="ajax-context"&gt;&lt;/div&gt; </code></pre> <p>What it should do (and does fine on Firefox) is when you type a username in to the #username field, it will run /ajax/ldap_search.php?cn=$username, which searches our company's ldap for the username and returns it's raw context and a formatted version of the context like this:</p> <pre><code>&lt;result&gt; &lt;display&gt;Staff -&amp;gt; Accounting -&amp;gt; John Smith&lt;/display&gt; &lt;context&gt;cn=jsmith,ou=Accounting,ou=Staff,ou=Users,o=MyOrg&lt;/context&gt; &lt;/result&gt; </code></pre> <p>The formatted version (display) goes to the div #ajax-context and goes to the hidden input #context. (Also, the -> are actually - "&amp; g t ;" (without spaces)).</p> <p>However, on IE the div stays stuck on "Searching..." and the hidden input value stays blank.</p> <p>I've tried both .get and .post and neither work. I'm sure it's failing on the .get because if I try this, I don't even get the alert:</p> <pre><code>$.get("/ajax/ldap_search.php", {cn: $("#username").val()}, function() { alert("Check"); }); </code></pre> <p>Also, IE doesn't give me any script errors.</p> <p>Edit: Added "$(document).ready(function() {", the .blur was already in it in my code, but I forgot to include that in my post.</p> <p>Edit 2: The request is being sent and apache2 is receiving it:</p> <pre><code>10.135.128.96 - - [01/May/2009:10:04:27 -0500] "GET /ajax/ldap_search.php?cn=i_typed_this_in_IE HTTP/1.1" 200 69 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload