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?
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.
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
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
THX Chris. location.reload(true) did the trick
is working on a reply...