Page 1 of 1

Comment with ajax almost working

Posted: Sun Sep 21, 2008 1:06 pm
by indexx
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?

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

Re: Comment with ajax almost working

Posted: Sun Sep 21, 2008 4:34 pm
by duclet
I don't think it currently does what you are fully looking for, but my comments module, DL Suite: Comments, is AJAX based.