Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 570945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:27:19+00:00 2026-05-13T13:27:19+00:00

I have a jquery ui slider in place which scrolls the content of a

  • 0

I have a jquery ui slider in place which scrolls the content of a div when moved, here’s the code:

    var paraHeight = $("#descPara").height();
    var maxScroll = paraHeight - 250;
    var activeScroll;
    if (maxScroll <= 0){

        //do nothing    

    } else {

        $("#slider2").slider({

            orientation: "vertical",
            min: 0,
            animate: true,
            max: maxScroll,
            value: maxScroll,
            slide: function(event, ui) {
                $("#descPara").stop().animate({'bottom': (-ui.value + maxScroll) + 'px'}, 1000);
            }
        });

    }

This works fine in Firefox but not in Safari/Chrome. What happens in Safari and Chrome is, the handle of the slider when the page loads is non existent until you click on the slider rail and when it does appear it cannot be dragged, hower you can still scroll by clicking along the slider rail.

This problem however is only apparent when used in the cms joomla, outside of this cms it works perfectly in all browsers. Weird.

Has anyone had any similar problems? it would be really helpful, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:27:19+00:00Added an answer on May 13, 2026 at 1:27 pm

    Joomla often includes mootools as a way of helping you along withs some simple javascript stuff. One of the big issues with this is that when using jQuery the $ alias is reserved for mootools instead of jQuery. Here are a few solutions.

    Option 1:

    If you know you still need mootools, modify your code calling jQuery to use the jQuery() function instead of $(). Like so:

    var paraHeight = jQuery("#descPara").height();
    ...
    jQuery("#slider2").slider({
        orientation: "vertical",
        min: 0,
        animate: true,
        max: maxScroll,
        value: maxScroll,
        slide: function(event, ui) {
            jQuery("#descPara").stop().animate({'bottom': (-ui.value + maxScroll) + 'px'}, 1000);
        }
    });
    

    Option 2:

    Just get rid of mootools. This is a fix in PHP. You can use it to keep mootools from getting output to the web page (and subsequently from interfering with your jQuery.):

    <?php
    $user =& JFactory::getUser();
    if ($user->get('guest') == 1) {
        $headers = $this->getHeadData();
        $headers['scripts'] = array();
        $this->setHeadData($headers); 
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a jquery slider, link: http://ekallevig.com/jshowoff/ this is my html code: <div id=features>
I have some content sliding here. http://www.smallsharptools.com/downloads/jQuery/Slider/slider.html The HTML structure is simple. There is
I have the following JQUERY UI Slider Code working: $('div#chatFriendsSliderPath').slider({ orientation: 'vertical', animate: 'fast',
Here http://jsfiddle.net/comparebest/yBcKk/6/ I have a jQuery slider and two Divs - DIV ONE and
I am using a very light jquery content slider but have no idea how
I have a jquery Image slider in a content page that worked fine. Once
I have a jquery slider which is working good in Firefox and Chrome. But
I have a jQuery UI slider here. http://jsfiddle.net/DrR7s/7/ I have animate attribues value as
Currently I have a JQuery script in place http://jsfiddle.net/gaby/zzj7E/5/ which handles the requirement that
I have a jquery range slider with custom steps which has two handles (min

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.