Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-10-2011, 04:51 PM   PM User | #1
gribbs100
Regular Coder

 
Join Date: Feb 2006
Posts: 168
Thanks: 32
Thanked 1 Time in 1 Post
gribbs100 is an unknown quantity at this point
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,
                        
                });
});
gribbs100 is offline   Reply With Quote
Old 03-10-2011, 06:00 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
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.
xelawho is offline   Reply With Quote
Users who have thanked xelawho for this post:
gribbs100 (03-10-2011)
Old 03-10-2011, 06:16 PM   PM User | #3
gribbs100
Regular Coder

 
Join Date: Feb 2006
Posts: 168
Thanks: 32
Thanked 1 Time in 1 Post
gribbs100 is an unknown quantity at this point
Smile

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

Thanks again!
gribbs100 is offline   Reply With Quote
Reply

Bookmarks

Tags
ie7, jquery, jscrollpane

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Advertisement
Log in to turn off these ads.