Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to reinitialize a lightbox plugin (slimbox2) after ajax call?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #25154
    iamacatperson
    Participant

    We use some ajax to update a photo on a page. But afterwards, the slimbox lightbox no longer works. Previously, it does.

    I tried doing:

    window.opener.slimbox2();

    But it immediately opens the lightbox (as in the screen darkens and a white box appears at the middle). What I’d like is just to get the slimbox2 plugin sort of ready, not immediately pop-out. I tried looking at the js code for slimbox2 but it’s already the minified version and it seems that the entire function is automatically called as it has this format:

    (function () {
    // code here
    })(jQuery);

    How do I call it again?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.