Solved

Javascript Scroll

Posted on 2012-04-09
1
285 Views
Last Modified: 2012-04-23
Is the following written properly to work in all browsers?  I am replacing the regular scroll bar with a customized one and it does not seem to work in IE.  Please look at the following and let me know if it is correct.  Thanks in Advance!

<script>
$(document).ready(function()
{
	$('.scroll-pane').jScrollPane(
		{
			showArrows: true,
			horizontalGutter: 0,
			verticalGutter: 0
		}
	);
});
</script>

Open in new window

0
Comment
Question by:rgranlund
1 Comment
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 37825612
Maybe this will help (from jScrollPane's site):

FAQs

jScrollPane doesn't work in Internet Explorer on my site

There are two common reasons for jScrollPane failing in IE:

You have a trailing comma in your settings initialiser. Trailing commas in array or object literals break in IE.
You are manually adding the jScrollPaneContainer in your markup. This container is added by jScrollPane - you should not add it yourself. View source of the examples (e.g. not the GENERATED source in firebug) to get the correct syntax.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now