WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Problem with other Javascript plugins (Front-end Editor, Faceboo (9 posts)

  1. pierreg_
    Member
    Posted 2 years ago #

    Hi,

    "Front-end Editor" and "Facebook Photo Fetcher“ plugins don't work anymore when Advanced AJAX Page Loader is active.

    I read in the FAQ that I "need to take the code used to bind the javascript to your elements and re-call them after the content changes", but I really don't know what code could re-call these 2 plugins.

    For the "Front-end Editor" plugin, I thought I got a solution : http://wordpress.org/support/topic/plugin-front-end-editor-stops-working-in-scrolled-sections-with-infinite-scroll-plugin
    But adding that code doesn't change anything :-(

    Could you please help me ?

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. deepbevel
    Member
    Posted 2 years ago #

    Yes, I too would like more info about this..where is it that you add the code, so it can be recalled after the content changes?

    And, Is there a way to find out what the code is? I'd like Easy Fancybox to work with this, if possible. Also Portfolio Slideshow.
    An example would be great.

    Also, Is there a way to make the ajax only apply to certain pages? maybe categories?

    thanks

  3. euphoriuhh
    Member
    Posted 2 years ago #

    There is a section in the ajax-page-loader.js file that reads DROP RELOAD CODES HERE or something to that effect. Directly underneath that comment, duplicate the instantiating javascript/jQuery codes from your header file.

  4. deepbevel
    Member
    Posted 2 years ago #

    Thanks! actually I contacted premium support for a slidshow plugin I purchased, wanted to use it with the ajax page loader, they didn't seem to know what "code which binds the javascript to the element" means. So I'm desperate to find out what I'm even looking for, what is this code? how might one find out more about how to proceed with this?

    duplicate the instantiating javascript/jQuery codes from your header file.

    does this mean the code for the slideshow should be in the header? If so, I don't see it. Or maybe that's not what you mean..?

  5. euphoriuhh
    Member
    Posted 2 years ago #

    what's your url?

    somewhere there should be something like $("#some_object").someSliderThing();

  6. deepbevel
    Member
    Posted 2 years ago #

    I see code for the slideshow when I look at the site in Firebug, but not in header.php, so I think maybe that's what you mean. If so, maybe if you look you can tell me what part I neeed to copy into the "DROP RELOAD CODES HERE".

    site link

    Thanks!

  7. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    It means the code which is called to bind slider/gallery/etc to the content in the page, as euphoriuhh says its usually:

    $('#id .class element').featurename();

    When you use any system such as a gallery viewer, you usually define a ID or Style tag to use to identify what HTML data is going to be used, it's this code you have to re-call. Because the new HTML in the page is not automatically re-checked by javascript, and any javascript run when the page loaded is not loaded again.

  8. pierreg_
    Member
    Posted 1 year ago #

    I just find the code to reload "facebook photo fetcher" plugin :

    jQuery("a.fbPhoto").fancybox({
    				"transitionIn"	: "elastic",
    				"transitionOut"	: "elastic",
    				"titlePosition" : "inside",
    				"titleFormat"	: function(title, currentArray, currentIndex, currentOpts)
    				{
    					return "<span id=\'fancybox-title-over\' style=\'background-image:none; text-align:left;\'>" + (title.length ? title : "") + "</span>";
    				}
    			});
  9. alejandrovze
    Member
    Posted 1 year ago #

    Was this ever resolved for Portfolio Slideshow? I'm also having trouble with this. I don't understand where I should find "$('#id .class element').featurename();" for my particular application. Should I use the code inspector when my page is loaded, or should I be looking at the php in the plugin editor? The website I am talking about is here.

    Thanks!
    alejandro

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic