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

  • SEARCH
  • Home
  • 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 6064923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:19:59+00:00 2026-05-23T09:19:59+00:00

I have a jQuery UI slider on the page I am building. It is

  • 0

I have a jQuery UI slider on the page I am building. It is controlling a type of slide show.

I want each element in my slide show to listen for the slide event of the slider. Upon the event, each element will assess it’s own position, determining whether it is in the viewable area of the slide show. If it is, it will load it’s own image and then remove it’s listener for the slide event.

The aim is for each element to be managing it’s own image loading. Is there a way I can acheive this in jQuery?

  • 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-23T09:19:59+00:00Added an answer on May 23, 2026 at 9:19 am

    I like to use jQuery’s custom events to set up listeners like this.

    Here’s an example: http://www.spookandpuff.com/examples/SliderPublishEvents.html

    Basically, you bind a custom event handler to each slide (called ‘update’ in my example), which executes whatever logic you need it to (determining position, loading images, etc). For each slide you can trigger the event, like so: $(slide).trigger('update').

    To update all the slides, you can bind an event to the slider itself (or any container for all the slides). In my example, this is called ‘refresh’. All this does is trigger the ‘update’ event on all the slides:

    slider.bind('refresh', function(event, position){
        slides.trigger('update', [position]);
    });
    

    The [position] parameter is designed to take the slider’s position, which is available from the ‘slide’ event in jQuery. (It’s set as a single-item array because of the way jQuery handles this data – it’s a bit of a kludge).

    So, when you set up the slider, assign the callback like so:

    $('#slider').slider({
        slide:function(event, ui){
            slider.trigger('update', [ui.value]);
        }
    });
    

    Then it’s just a matter of putting the logic for each slide into the refresh event handler for the slide itself. Do you need help with that, also?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an absolute positioned jQuery slider on my page. With it, I want
I have a page which contains a jQuery-UI horizontal slider, created using a little
i have a jquery slider function and i want to customize it. my requirement
I'm modifying the jquery ui slider. I have certain stops I want the user
I have a jquery based slider on the page. This slider calls a function
I have a jquery Image slider in a content page that worked fine. Once
I have a jquery slider on my page which is centered when the page
I have installed the jQuery UI slider, but it doesn't show in my code.
I have a page that has multiple sliders (from http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div ) and since each
I have two jquery items on one page (slider and vticker) and only one

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.