• Hi all,

    I’m using the Photonic plugin to display Picassa (Google Plus) albums. I use AJAX to load my page content dynamically. Is there any way to fire the Photonic jQuery code manually once the DOM has been updated?

    At the moment, none of the lightboxes will work as any new DOM elements haven’t been manipulated.

    Cheers,

    Tom

    http://wordpress.org/extend/plugins/photonic/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Please note – I’m using wordpress 3.5

    Plugin Author Sayontan Sinha

    (@sayontan)

    I don’t believe there is any way to handle this in the plugin without major changes.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Can you provide a link to your site and the plugin you are using to load everything via AJAX? I can take a look to see if it is something I can support in a later version.

    Hi Sayontan,

    Fab plugin but unfortunately in the end I ended up writing a small Picasa script from scratch myself as I realised that I’d need to hack at your code. I think my site was a bit of an edge-case where the DOM was being modified after your script ran.

    Maybe if there was a public function available to apply the jQuery modifications on the fly e.g. in ColorBox you can call $.colorbox(params) on jQuery elements after the DOM change.

    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Photonic jQuery on AJAX request’ is closed to new replies.