WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
Reload Code for Bandsintown (3 posts)

  1. mewithoutyou
    Member
    Posted 1 year ago #

    Does anyone have a working reload code for Bandsintown (http://www.bandsintown.com/)?

    Any help would be greatly appreciated!

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

  2. Jay Hughes
    Member
    Posted 1 year ago #

    Hey - I've just been working with this plugin and come across the 'reload' situation.

    location.reload();

    If you place your code within the admin panel 'reload' section - it get's placed here:

    "[yoursite.com]/wp-content/plugins/advanced-ajax-page-loader/reload_code.js"

    I'm making the assumption (without looking into the plugin code) that the anchors are triggered/binded with $(document).ready(function (){}.

    Try this:

    $(window).on('load', function() {
       //// Non Ajax loading pages
    	$('#home, #contact').click(function() {
    		location.reload();
    	});
    });

    My 'main.js' is rendered before the plugin loads. Not sure if that helps.

  3. SpaciousMind
    Member
    Posted 10 months ago #

    @mewithoutyou
    Were you able to get this working? I am having the same issue.

    @Jay Hughes
    Can you dumb down what you said above for a non-programmer? I tried plugging in your snippet and changing '#home, #contact' to the page in question on my site, '#shows', but doesn't seem to do anything.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic