SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast yangyang's Avatar
    Join Date
    Jun 2007
    Location
    kavoir.com
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Click & reveal not working in IE8

    Tried around but never got this thing resolved.

    Please see this page in FF: http://www.nexky.com/pricing.html

    And click one of the row headers of one of the tables, such as this one "二分贝" and a previously hidden hint / comment will be revealed under it, see the screenshot here: http://postimage.org/image/vmsdr1kqn/

    However, with IE8 on this page: http://www.nexky.com/pricing.html

    Clicking on the row headers of any of the tables do nothing; it simply doesn't respond in any way.

    Any idea why and how I can make it reveal in IE8? Thanks!
    I blog about making websites, technically.
    Online image converter - all formats that you can think of.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,678
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by yangyang View Post
    Any idea why and how I can make it reveal in IE8? Thanks!
    There's a problem where jQuery's toggle method doesn't properly detect if an IE8 table row is showing or not.
    You'll have to roll your own toggle code when you're dealing with table rows, which would look something like this:

    Code javascript:
    $(this).parents("tr").next(".detail").each(function(i, elem) {
        $(elem).toggle($(elem).css('display') == 'none');
    });

    See this for deeper info on the problem itself: http://www.code-styling.de/english/j...oblems-at-ie-8
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast yangyang's Avatar
    Join Date
    Jun 2007
    Location
    kavoir.com
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot! This works!

    Can you give me your site? Let me make a link to you on my blog!

    Quote Originally Posted by paul_wilkins View Post
    There's a problem where jQuery's toggle method doesn't ...
    I blog about making websites, technically.
    Online image converter - all formats that you can think of.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,678
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by yangyang View Post
    Can you give me your site? Let me make a link to you on my blog!
    I don't have a site of my own, but please consider placing a nomination in the upcoming sitepoint awards.
    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
  •