Comment with ajax almost working
Posted: Sun Sep 21, 2008 1:06 pm
I'm trying to make comments module working with ajax but I have a problem.
Site after adding comment isn't refreshing but in pleac wher should appear div with message appers page index.php and comment isn't added to base.
Mayby someone know how make it works?
http://inzosoft.pl/include/mootools.js
Site after adding comment isn't refreshing but in pleac wher should appear div with message appers page index.php and comment isn't added to base.
Mayby someone know how make it works?
Code: Select all
<__script__ type="text/javascript">
window.addEvent('domready', function(){
$('m4moduleform_1').addEvent('submit', function(e) {
new Event(e).stop();
var log = $('log_res').empty().addClass('loading');
this.send({
update: log,
onComplete: function() {
log.removeClass('loading');
}
});
});
});
</__script>
http://inzosoft.pl/include/mootools.js