Support » Fixing WordPress » Making these 2 ajax plugins work

  • Hello,

    I’m using 2 ajax plugins :

    – The first one is from a nice tutorial, i show you the javascript part.

    jQuery(document).ready( function($) {
      $(".more-link").click( function() {
        var link = $(this);
        $.post(link.attr("href"), {
            post_expander: 1
          }, function(data) {
        return false;

    This plugin is called “Post expander” and it’s supposed to show the content of a post without refreshing from an excerpt for exemple. So i just tweaked it to show the comments as well.

    This is working : good.

    – The second plugin is supposed to permit the user to submit a comment without refreshing (again). This is where i have a problem.
    Whatever the ajax comment submission plugin i’m using, the problem is the same.

    From my index page i first click on my link to show the comments, ok. And then when i submit a post this is redirecting me to the post page (through single.php template) instead of just submitting.

    However, from this page because there was no ajax request before (meaning no conflict i guess) the ajax submission is ok.

    So my problem happens like if the first ajax request made the second impossible.

    If you have any idea, let me now. Thank you.

  • The topic ‘Making these 2 ajax plugins work’ is closed to new replies.