Title: Ajax BUG
Last modified: August 30, 2016

---

# Ajax BUG

 *  [denerpatrick](https://wordpress.org/support/users/denerpatrick/)
 * (@denerpatrick)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/ajax-bug-2/)
 * Dears,
 * I’m trying to use nextgen gallery with a plugin to ajax the navigation. So when
   the page loads from ajax, the gallery doesn’t works as well. Can you help me 
   with a init code to loads the gallery correctly? I’m using Advanced Ajax Page
   Loader 2.7.2 – FREE VERSION. Thanks.
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/ajax-bug-2/#post-6583410)
 * [@denerpatrick](https://wordpress.org/support/users/denerpatrick/) – We’re likely
   going to need more information about this … what specifically are you trying 
   to load? What appears to be the problem?
 * Have you contacted the other author to see if they have any insights into this
   problem?
 * – Cais.
 *  [alvaroGomides](https://wordpress.org/support/users/alvarogomides/)
 * (@alvarogomides)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/ajax-bug-2/#post-6583432)
 * In this case we’re loading some pages with ajax code. We have an field to load
   scripts when the the ajax loads the new page. We wanna a code that initializes
   the gallery, something like when jQuery doc is ready you call that interprets
   the html and creates the js functions.
 * In other words, we need to load from ajax calls an nextgen gallery, the script
   and css loads as well, but the images goes to your url, not opens the lightbox.
   We need an command that binds the image again, something like init functions.
 *  [Benjamin](https://wordpress.org/support/users/benjaminowens/)
 * (@benjaminowens)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/ajax-bug-2/#post-6583602)
 * I’m working on putting together some more comprehensive documentation on the 
   NGG internals, but this covers [how to find NGG css/js url](https://0x18.us/introduction-to-nextgen-gallerys-internals/).
   I’m always open to questions or criticism if you have any.
 * NextGen lightboxes will rebind their targets on the window ‘refreshed’ event.

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

The topic ‘Ajax BUG’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Benjamin](https://wordpress.org/support/users/benjaminowens/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/ajax-bug-2/#post-6583602)
 * Status: not a support question