• Hi,

    i just found your awesome plugin! It works great without the ajax page loading from my theme. When my pages are loaded via ajax the rating plugin (shortcode) freezes and is not usable anymore.

    On other rating plugins (here kkstarratings) it was possible to reload the code via:

    $(window).on('statechangecomplete', function() {
        $( document ).ready(function() {
            
    $('.kk-star-ratings').kkstarratings();

    Is there also a reload code for your plugin?
    Thank you very much! Great work!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    There is no standard way in how AJAX themes work, so I am not sure what I can do here. For now, plugin doesn’t support such method of load, because there is no way to know it happens. I will see about doing something about that in the future, but I can’t promise anything at this point.

    Thread Starter gogosjon

    (@gogosjon)

    Thank you for your answer!

    I only need a small piece of code to restart the plugin initialization.

    because there is no way to know it happens.

    I want to start the initialization after the ajax page load is finished. I can do this with:

    $(window).on('statechangecomplete', function() {
        $( document ).ready(function() {

    Thank you very much!

    Plugin Author Milan Petrovic

    (@gdragon)

    Sorry, I can’t help you here, this can’t be done without modification of the plugin. Until this is implemented in the future, there is no quick way to make it work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin Reload Code for use with Ajaxify’ is closed to new replies.