Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    168
    Thanks
    32
    Thanked 1 Time in 1 Post

    IE7 does not like this line of JQuery. Is there a way to change it around?

    Hello all,

    I have having an issue where IE7, displays an error on the page when this script is used. It wont initiate the scroll bar yet it works fine in the other browsers (IE8,Firefox,Chrome all fine)

    Even if I put the code in a js file instead of the html, IE7 finds the problem there. The red text is what it points to as an error

    Code:
    $(function()
    {
            $('#content_right_services').jScrollPane(
                    {
                            showArrows: true,
                            
                    });
    });

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,912
    Thanks
    56
    Thanked 545 Times in 542 Posts
    is the comma after "true" necessary? IE7 is very fussy about hanging commas (it thinks that that means there is another value yet to come, goes looking for it and gets all confused when it doesn't find it) whereas the other browsers you mention are a bit more relaxed. I think generally speaking it's good practice not to have a comma unless there is another line to follow.

    hope that helps.

  • Users who have thanked xelawho for this post:

    gribbs100 (03-10-2011)

  • #3
    Regular Coder
    Join Date
    Feb 2006
    Posts
    168
    Thanks
    32
    Thanked 1 Time in 1 Post

    Smile

    That solved the problem! Thank you very much. Such a simple thing I missed.

    Thanks again!


  •  

    Tags for this Thread

    Posting Permissions

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