Please resolve Java Script Errors of my Site

Discussion in 'Programming' started by hemanthjava, Mar 15, 2009.

  1. #1
    I am getting a real terrible Java Script Error in Internet Explorer.

    I click on Sports Category and nothing Appears in IE. But It works perfect in Mozilla.

    Please help me resolve this - http://www.webhush.com
     

    Attached Files:

    hemanthjava, Mar 15, 2009 IP
  2. _op_

    _op_ Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This particular error ('0.offsetHeight' is null or not an object) is thrown by jcarousellite_1.0.1c4.js.
    I think that's because the following div does not contain any li elements below ul:

    <div class="arthemia-carousel">
    <ul>
    </ul>
    </div>
    HTML:
     
    _op_, Mar 15, 2009 IP
  3. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Can you help me resolve this. As the original header.php contains the <li> tags. I have attached the same.
     

    Attached Files:

    hemanthjava, Mar 15, 2009 IP
  4. _op_

    _op_ Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, lets see...

    I think, that in the following code fragment

    <div class="arthemia-carousel">
    <ul>
        <?php while (have_posts()) : the_post(); ?>
        <li>
        <div>
        [...]
        </div>
        </li>
        <?php endwhile; ?>
        <?php wp_reset_query(); ?>
    </ul>
    </div>
    
    Code (markup):
    the while operator returns immediatelly (no posts?), and li elements are not created.
     
    _op_, Mar 15, 2009 IP
  5. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Could you code and solve the problem for me.
     
    hemanthjava, Mar 15, 2009 IP
  6. _op_

    _op_ Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Unfortunately I cannot, since I am not proficient with PHP...
     
    _op_, Mar 15, 2009 IP
  7. alexpr07

    alexpr07 Active Member

    Messages:
    284
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #7
    Please post the source code of the file that supposed to open when you click on Sports category. When I do that in IE I get an empty file so that's why nothing displayes in IE. If this file is written in PHP, I need to look at the source code that I won't get from the Mozilla too.
     
    alexpr07, Mar 15, 2009 IP