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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:42:48+00:00 2026-06-06T10:42:48+00:00

I am using a jQuery plugin called iScroll 4 ( iScroll4 Docs ), which

  • 0

I am using a jQuery plugin called iScroll 4 (iScroll4 Docs), which allows me to touch, swipe, pinch and scroll a scrolling panel. The contents of this scrolling panel are loaded via AJAX and include a horizontal list of images.

This all works fine when first loaded but if I upload some more images and have AJAX update the panel, the iScroll plugin doesn’t work anymore!

This is my code… and this works:

// the JS ////////////////////////

<script src="js/iscroll-lite.js"></script>
<script>

// start iScroll

var myScroll;
function loaded() {
    setTimeout(function () {
        myScroll = new iScroll('scroll-uploader-photos');
    }, 100);
}
window.addEventListener('load', loaded, false);

// load images to panel for first time

load_previous_uploads(<%=Session("article_id")%>);

// load images function

function load_previous_uploads(article_id) {
    if (article_id != "") {
        var data_str = "article_id="+article_id
        $.ajax({
        type : 'GET',
        data : data_str,
        url : 'ajax/get-uploader-photos.asp',
        dataType : 'html',
        success : function(data) {
            if (data != "") {
                $(".upload_result").html(data);
            }
        }
        });
    }
}
</script>

// the html //////////////////

<div class="upload_result"></div>

// the ajax content from external ASP page (get-uploader-photos.asp)

<div class="scroll-uploader-photos">
    <img><img><img><img><img><img><img><img><img><img><img><img><img>
</div>

If I now go and upload some more images, and on success I run the function load_previous_uploads(), the iScroll plugin then does not work as the sliding panel has been updated and is starting to bug me as to why I cannot fix it. After it stops working, I can simply refresh the page and it all works again, with the new images.

For a better example of what I have:

enter image description here

If anybody can see what is wrong and/or can see a fix, please let me know – I would be soooo grateful!

**** MY ATTEMPT ****

I thought by calling the iScroll function **loaded()** right after AJAX updates the image panel after an upload, it might fix the problem… but it didn’t!!

  • 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-06T10:42:49+00:00Added an answer on June 6, 2026 at 10:42 am

    Have you tried the refresh method of iScroll?

    From the docs

    ajax('page.php', onCompletion);
    
    function onCompletion () {
        // Here modify the DOM in any way, eg: by adding LIs to the scroller UL
    
        setTimeout(function () {
            myScroll.refresh();
        }, 0);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using a jquery plugin called fcbkcomplete which shows up fine in chrome
I am using a JQuery Plugin called lightbox (which is great btw). Problem is,
I am using a jQuery plugin called Stepy , which is based of the
I am using a jQuery plugin called Stepy , which is based of the
I'm using a jQuery plugin called qTip (http://craigsworks.com/projects/qtip/docs/api/#callbacks) and trying to implement a callback
Using a Jquery plugin called filestyle from: http://www.appelsiini.net/projects/filestyle . I have a select box
I am using a jquery plugin from [ FilamentGroup ] called DateRangePicker. I have
Using jQuery validation plugin - http://docs.jquery.com/Plugins/Validation Wanting to use the remote method on a
I'm using a jQuery plugin called Tablesorter to do client-side sorting of a log
I am using a jquery plugin called masonry. In IE & firefox, the site

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.