SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,896
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question jQuery: Book example not work

    Hello,

    I ahve just noticed that the file from Chapeter 03 of jQuery: Novice to Ninja doesn;t seem to work in ANY versions of Internet Explorer.

    The file in question is: chapter_03/18_layout_switcher/script.js

    This works fine in Chrome, Firefox, Opera and Safari but fails in every version of IE, should it work or not?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Go to the book's Errata where they have information about that.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,896
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.

    From a tiny bit of testing just now. It seems to be still confusing.

    - With 1.4, I can get it working in all other browsers and no versions of Ie

    - With 1.5, I can't get it working in ANY browser

    - With 1.3.2, I can get it working in any browser + IE9.

    How strange.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    There seems to be another issue at hand, with this particular line:
    Code:
    $('link[href=wide.css]').remove();
    It seems to work when double-quotes are used to delimit the value:
    Code javascript:
    $('link[href="wide.css"]').remove();
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •