WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Fancy Gallery] working with AJAXed posts

[Resolved] [Plugin: Fancy Gallery] working with AJAXed posts

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dennis Hoppe

    @dhoppe

    This is a nice tip. I will see how I could add support for Ajax interfaces. To make it work for now you could try to re-fire the jQuery “ready” event.

    You could try
    jQuery(document).ready();
    after you loaded the posts content or you could try
    jQuery(document).trigger('ready');

    Sergey.S.Betke

    @sergeysbetkenovgaroru

    Author: Thank you very much for your plugin. I ask you to add the ability to use your plugin for AJAXed sites. The following quote a modified version of the file fancy-js.php. In the beginning of the file – patch for support client-side caching (also ask you to include these changes in the next version of your plugin). At the end of the file – a subscription to an update AJAX event. Using the event “ready” will cause the processing of the document (that too), except that – will work and those handlers that should work only when document loaded. This is potential bag.
    AJAX loader just fire event:
    $(el).trigger('onContentUpdate.ajax');
    and Your plugin prepare just loaded (updated) content, not full document.

    fancy-js.php for AJAX:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Fancy Gallery] working with AJAXed posts’ is closed to new replies.