Title: Code reload
Last modified: August 20, 2016

---

# Code reload

 *  Resolved [whoopcg](https://wordpress.org/support/users/whoopcg/)
 * (@whoopcg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/)
 * 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.”
 * [http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/#post-3570300)
 * Hi,
 * 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,
    Stefan
 *  Thread Starter [whoopcg](https://wordpress.org/support/users/whoopcg/)
 * (@whoopcg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/#post-3570541)
 * 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](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/#post-3570542)
 * 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.
 *  Thread Starter [whoopcg](https://wordpress.org/support/users/whoopcg/)
 * (@whoopcg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/#post-3570543)
 * Thanks anyway for your quick response 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code reload’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 4 replies
 * 2 participants
 * Last reply from: [whoopcg](https://wordpress.org/support/users/whoopcg/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/code-reload/#post-3570543)
 * Status: resolved