Confusing WP page load with AJAX

My site is http://armandwho.com/site

I’m using the Adv. Ajax Page Loader Plugin in order to keep my background vid & music uninterrupted while browsing.

Read More

I’m having trouble with the “LOOK” page. When navigating to it from the homepage (1st link), the gallery doesn’t load at all. However, when you refresh or go directly to the page URL it works.

Within the plugin, there is an area for jQuery reload codes, which I think will load the needed scripts that don’t get loaded when using the nav.

Can anyone make sense of what script I might need to “reload” to get my gallery working with this Ajax plugin?

Help is supremely appreciated!

Joe

Related posts

Leave a Reply

1 comment

  1. I loved the music, so I decided to look into the problem a bit.

    I stepped through the code for the plugin as it tried to load the page and came across this line:

    //Nothing like good old pure JavaScript...
    document.getElementById(AAPL_content).innerHTML = output;
    

    ..which is a problem because the javascript in the script tags isn’t going to be run. You could change it to:

    //Nothing like good old pure JavaScript...
    jQuery(document.getElementById(AAPL_content)).html(output);
    

    ..and jQuery will handle the dirty work.