Solved

JS Scroll Pane

Posted on 2012-04-02
9
449 Views
Last Modified: 2012-04-23
I'm using JS Scroll Pane on a website.  The scroll works fine, gut If a place a menu that has named links, so you can jump to a specific part of the menu, the div moves up about 25 pixels and the slidebar disappears.

Here is a link:
goto:menu and you will see what I mean.

EXPERTS ONLY Please!
http://www.redthesteakhouse.com/development/index.php/miami
0
Comment
Question by:rgranlund
  • 5
  • 4
9 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37800540
Can you change

$('a.panel').click(function () {
  $('a.panel').removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
  return false;
});

to

$('a.panel').click(function (e) {
  e.preventDefault();
  current.removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
});
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37801957
@mplungjan that change cause the scrollto to not work at all.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37802017
Any error in the console?
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37816929
@mplungjan No errors in console.  Any other clues that may help?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37817180
No, not really. Do you have a test page?
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37817270
If you go to the link above, you can see the final issue.  It may just be a CSS issue.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37817477
No longer jumping for me. The scroll bars disappear as usual though
0
 
LVL 7

Author Comment

by:rgranlund
ID: 37817509
Any ideas on how to keep it in place?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 37817522
Not without extensive debugging. I am alas off to bed
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

707 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

12 Experts available now in Live!

Get 1:1 Help Now