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 8512559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:18:41+00:00 2026-06-11T04:18:41+00:00

I am having slider for a set of data with paging, the problem is

  • 0

I am having slider for a set of data with paging, the problem is that the div containing the slider is loaded from ajax request via ajax. so it’s not working.

paging function:

function loadData(page){
                    loading_show();
                    confID = $("#confID").val();
                    verID = $("#confID").attr("v");
                    $.ajax
                    ({
                        type: "POST",
                        url: "paging-offlineTemp.php",
                        data: {page:page, confID: confID, verID:verID},
                        success: function(msg)
                        {
                                loading_hide();
                                $("#container").html(msg);
                                resize_iframe();
                                $(".slider").each(function(){
                                    $(this).slider({ animate: true,
                                        value: parseInt($(this).attr("preRate")),
                                        min: 0,
                                        max: 5,
                                        step: 1
                                    });
                                    if($(this).attr("preRate") == -1) {
                                        $(this).slider({ disabled: true }); 
                                        td = $(this).parent("td");
                                        tr = $(td).parent("tr");
                                        box= $(tr).find(":checkbox");
                                        $(box).attr("checked",true);

                                    }   
                                });
                        }
                    });
                }

pageing-offlineTemp.php is too long but it just select the next set of data by limit

function which control slider:

$(".slider").each(function(){
                    $(this).slider({ animate: true,
                        value: parseInt($(this).attr("preRate")),
                        min: 0,
                        max: 5,
                        step: 1,
                        change: function( event, ui ) {
                            $(this).attr("rate", ui.value);
                            rate = $(this).attr("rate");
                            confID = $(this).attr("confID");
                            critID = $(this).attr("criteria");
                            paperID = $(this).attr("paperID");
                            label = $(this).parent("td").find("label");
                            $(label).html("New rate: "+ rate);
                            td = $(this).parent("td");
                            tr = $(td).parent("tr");
                            span = $(tr).find("span");
                            $(span).fadeIn("slow");
                            $.ajax ({
                                data:{rate:rate, confID:confID, critID:critID, paperID:paperID},
                                type: 'POST',
                                url:  'update_rate.php',
                                success: function(response) {
                                    //alert(response)
                                    $(span).delay(500).fadeOut('slow');
                                }
                            });
                        } 
                    });

slider div:

<div type="" paperID="'. $paper .'" preRate="'. intval($irate) .'"
                                 criteria="'.$row['rate_id'].'" confID="'.$conf_id.'" rate="" class="slider">
                    </div>

I guess is that the slider function don’t fire because initially the paging container div is empty and no element with class slider, So is there a work around to keep the paging while the slider event fire?

  • 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-06-11T04:18:43+00:00Added an answer on June 11, 2026 at 4:18 am

    Short answer: move your $('.slider').each( into the success callback of the ajax function

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

Sidebar

Related Questions

I am having a issue in a Content Slider that when I scroll (by
Im having issues with my JCarosel slider. My html is set up as required...
I'm having a terrific problem with an implementation of serialscroll. I've set it so
The Issue I am having is that I have a JS Slider in the
OK here goes, I'm using jQuery ajax to load post from inside a slider.
I'm having a problem. I have a Custom UITableViewCel, the cell contains a slider
I'm trying to set some properties inside an object. I'd love not having to
Having issue with slider navigation. Works perfectly fine when there are no other unordered
I'm using the jQuery UI slider and having trouble saving the position of the
I'm trying to apply a specific style to a slider control and I'm having

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.