Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Uros Sankovic 107 posts 134 karma points
    May 17, 2010 @ 15:40
    Uros Sankovic
    0

    How to refresh site after posting new comment

    Hi,

    After posting new comment (Blog 4) you get THANK YOU line, but the content doesn't refresh so you don't see your comment being published (except if you refresh your page).

    How can you do that without clicking the refresh button?

     

    Uros

  • Chris Dunn 210 posts 401 karma points
    May 21, 2010 @ 04:03
    Chris Dunn
    0

    You will probably need to modify the package to make it function the way you want.  The comment form uses ajax to save the comment so the page does not get refreshed and the macro to list comments would not get reloaded.

    So the solution is to open Visual Studio :)

    The other option is to update the AjaxCommentForm.ascx to perform a location.reload(true); after the jQuery("#commentPosted").show().removeClass("error");  

    This obviously removes the benefit of the ajax post in the comment form but does solve your problem.

    -Chris

  • Uros Sankovic 107 posts 134 karma points
    May 25, 2010 @ 21:58
    Uros Sankovic
    0

    THX Chris. location.reload(true) did the trick

Please Sign in or register to post replies

Write your reply to:

Draft