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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:28:18+00:00 2026-06-13T13:28:18+00:00

I am making a site currently being tested at test2.applicationcreations.net . With an image

  • 0

I am making a site currently being tested at test2.applicationcreations.net. With an image gallery that dynamically changes the images. I’m using swipeJS for the slider.

When you navigate to project gallery then to custom homes the new HTML with correct formatting loads in but the rotator does not work. I believe the problem is that swipeJS is not initialized on the new code. I have tried passing the new items to the object using window.mySwipe = new Swipe(document.getElementById('slider')); but I have had no luck.

For some reason if I click on inspect element on Chrome 18 OS X the rotator works with the new content.

Any help getting this working is greatly appreciated. Thank you.

  • 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-13T13:28:19+00:00Added an answer on June 13, 2026 at 1:28 pm

    Yup, you got it right, once you have added the new element, all you need to do is reinitialize the mySwipe object.

    This is the first initialization of the swipe slider object:

    /*----------------------------------------
      Swipe slider to enable touch sliding
    ----------------------------------------*/
    document.mySwipe = new Swipe(document.getElementById('slider'), {
      startSlide: 0,
      speed: 400,
      auto: 5000,
      callback: function(event, index, elem) {
        // do something cool
      }
    });
    

    Now just define a method which re-initializes the swipe object.

    /*----------------------------------------
      Reinitializing the Swipe Slider.
    ----------------------------------------*/
    document.reinit = function(){
      document.mySwipe = new Swipe(document.getElementById('slider'), {
        startSlide: 0,
        speed: 400,
        auto: 5000,
        callback: function(event, index, elem) {
          // do something cool
        }
      });
    }
    

    Call that method when you have finished adding new elements to the existing slider.

    // Finished adding new elements
    document.reinit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an ecommerce site and I'm currently trying to implement my cart using
I am working on making my site more SEO friendly I am currently using
I've been rebuilding my site using CodeIgniter. I am currently making the sign up
I'm currently using Padrino with Sass and Slim to markup a site that I'm
Hi i am currently making a demo site from just pure html/css/javascript usually i
Currently making a global volunteer site, and the webpages will more or less have
I'm making a site with a background image on every page. The image is
I am making n alcoholic site that has a gateway for age verification wish
I'm making a site that will be translated into x languages. All strings must
I am making a site that consumes a csv file this file can come

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.