Support » Plugin: Slideshow » Code reload

  • Resolved whoopcg


    Hi there.
    I’m using Advanced AJAX Page Loader and when I load a content with Slideshow, it doesn’t work. I need to force reload through jQuery.
    Can anyone help?
    Thanks in advance.

    “Q: I have content that usually uses JavaScript but now that is not working when loaded with ajax.

    A: Unfortunately any inline javascript in the HTML being loaded into the page is ignored by your browser, also any bindings for lightbox for example need to be reloaded when new HTML is put into the page. You need to take the code used to bind the javascript to your elements and re-call them after the content changes… Put the binding code in the JS file after the line which says “DROP YOUR RELOAD CODES BELOW HERE”

    I have included a few example codes for nivoslider and jScrollPane, if you have other code please let me know and I can add it to the list.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefan Boonstra



    It would indeed be possible to call the slideshow script after an AJAX request. However, you’ll need to make sure that the slideshow script is always loaded on the page. Also the functional stylesheet and the stylesheets that style the buttons need to be included.

    Using jQuery you will have to seek all new ‘.slideshow_container’ classed elements and apply the ‘slideshow_jquery_image_gallery_script()’ function to them.

    There’s no guarantee as to how long this way of doing it will remain available. There are plans to make the slideshow compatible with AJAX loading, though.

    Best regards,

    So sorry, the follow-up emai went to spam!

    Could you help me out with your suggestion? Don’t know how to do that. I understand if it’s too much trouble.

    The only thing I’ve tried was copy every line or almost every line I thought was related do the script, on the html, to the footer template.
    Photos work ok, youtube videos don’t…

    Plugin Author Stefan Boonstra


    If you got photos to show when using the slideshow with AJAX, it’s not a very bad result. Videos depend on the YouTube API, which is loaded when the page loads. It would be very tricky to get the slideshow working with videos after loading it with an AJAX request. I can’t think of a solution to this on the fly, I’m sorry.

    Thanks anyway for your quick response 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code reload’ is closed to new replies.