Web Analytics Made Easy -
StatCounter jQuery Dom Load for IE - CodingForum

Announcement

Collapse
No announcement yet.

jQuery Dom Load for IE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jQuery Dom Load for IE

    I have an autocomplete function which works fine in all browsers except IE from here:


    Code:
    $(document).ready(function () {
    
      var a = $('#sbox').autocomplete({ 
        serviceUrl:'calcfile.php',
        minChars:1, 
        maxHeight:400,
        width:300,
        params: { ajtype:'4' },
        deferRequestBy: 0, //miliseconds
        noCache: true // true is no caching
      });
    In IE, when I start typing, nothing happens. Firebug shows no errors, and other browsers are fine. The notes on that link say to wait for the DOM to load. Am I missing something?

    });

  • #2
    Update:

    I've added a zIndex:9999 as another parameter but no luck.

    I'm using IE8 for my IE test.

    Comment


    • #3
      I've also used an absolute path for the ajax url as well as this:

      I've done this in the autocomplete file
      Code:
      if($.browser.msie && 
                          ((typeof document.body.style.maxHeight === "undefined") ||
                          (document.body.style.maxHeight == '')))
      as well as this doctype:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "w3.org/TR/html4/loose.dtd">

      Still no luck with IE8.
      Last edited by mathceleb; Aug 28, 2011, 12:22 PM.

      Comment


      • #4
        To check the actual page, just go to www.mathcelebrity.com.

        Start typing "mat" using IE8.

        Comment


        • #5
          Resolved:

          I turned off compatibility mode and it works!

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎