Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Griffin

    (@griffinjt)

    If you are loading the slider in with ajax, you need to call the init scripts separately since the hooks normally available for outputting scripts do not apply for content load via ajax.

    Specifically, you should use something like $.getScript to load in both the plugin CSS and JS files, and then output the init code with the slider_script method found in the Shortcode.php file.

    Providing a solution for this would require a paid purchase of the plugin since this is outside of basic support/bugs. I’d be more than happy to work up a solution for you if you choose that route.

    Thread Starter blindsnoop

    (@blindsnoop)

    thank you for your reply
    yes I’ve purchase Soliloquy slider but I don’t really understand what you’ve just explain to me ..
    I can give you the wordpress admin codes in a private message if you want.
    In fact the function works directly in the php code,
    but when I load articles which contains soliloquy shortcode it does not display the slider, only the article’s title.

    Thread Starter blindsnoop

    (@blindsnoop)

    here is the ajax code I use :

    <script type="text/javascript">
    jQuery(document).ready(function($){
        jQuery.ajaxSetup({cache:false});
        jQuery(".trick").click(function(){
            var post_id = $(this).attr("href");
            jQuery("#contentgalerie").html("loading...");
            jQuery("#contentgalerie").load(post_id);
    
        return false;
        });
    
    });

    [Please post code between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    </script>

    Thread Starter blindsnoop

    (@blindsnoop)

    `<script type=”text/javascript”>
    jQuery(document).ready(function($){
    jQuery.ajaxSetup({cache:false});
    jQuery(“.trick”).click(function(){
    var post_id = $(this).attr(“href”);
    jQuery(“#contentgalerie”).html(“loading…”);
    jQuery(“#contentgalerie”).load(post_id);

    return false;
    });

    });

    Thread Starter blindsnoop

    (@blindsnoop)

    Hi Thomas do you have time to see what’s wrong in my website ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘slider not working when load with ajax’ is closed to new replies.