Viewing 14 replies - 1 through 14 (of 14 total)
  • Check if you have setup properly the class, id of the container that needs to be updated through AJAX in the plugin settings page. You need to provide ‘content’ class or ‘ajax-content’ as id for the container I guess.

    From the issue, it seems like you are including the MENU Navigation itself inside the AJAX replacement.

    I had the same issue:
    $('.' + aws_data['mcdc']).html($menu_list.html());
    was removing the event bindings on the body for the navigation menus.

    So I changed the binding in the ajaxify function to use delegate() instead of on():
    $this.delegate('a:internal:not(.no-ajaxy,[href^="#"],[href*="wp-login"],[href*="wp-admin"])','click', function(event){ ...

    There’s probably a better long-term solution for binding these events. But this is what I did in my project so that I can continue evaluating if an AJAX site is a good approach for my project.

    Hey fetherston93

    I have no idea where to insert this code. Was it complete? I noticed the ‘…’ at the end.

    Sorry, editing .js files is not my thing.

    Hey Dimmy, Start your own support thread instead and please describe the issue you are facing.

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    Do you guys still facing problem mentioned above?

    yes i sill have facing the same problem

    abtx

    (@abtx)

    having same issue here

    abtx

    (@abtx)

    Go to ajaxify.js and change the code on line 63, as advised above.

    Should do the trick.

    Abdelouahed

    (@abdelouahed)

    abtx Thanks for your answer but it doesn’t work, it throws a jQuery error.
    I am using jquery 1.11.0

    I fixed the issue by adding
    $body.ajaxify();
    On line 153 below this code
    $('.' + aws_data['mcdc']).html($menu_list.html());

    BackpackersUnion

    (@backpackersunion)

    Abdelouahed great work! This fixed the issue for me. Thanks for sharing!

    Dinho78

    (@dinho78)

    Thanks Abdelouahed! That fixed it for me as well. ??

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    Closed ??

    Thank you guys so much for this last solution, its about %90 of the way there, I am having some further issues though. Every page except the home page works fine. As soon as I navigate back to the home page my music player stops playing as the page has to reload again.

    Also after about 30-60 seconds any menu option will stop the player due to reloading the entire page again. Any ideas?

    check it out here:
    https://www.astro-music.org

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    Hello,

    You can try AWS pro plugin. This has several other feature that may solves your problems.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘AJAX works only every other time’ is closed to new replies.