Constructor
new Event() does not work. Events are now normalized automatically. just e.stop();
update : does not work outside of Request.HTML . http://mootools.net/docs/core/Request/Request.HTML - also this.send(URL); - you better do:
$('myform').addEvent('submit', function (e) { e.stop(); var log = $('log'); new Request.HTML({ url: this.get('action'), data: this, update: log, onRequest: function(){ log.addClass('ajax-loading').empty(); }, onComplete: function(){ log.removeClass('ajax-loading');
jsfiddle is currently playing, but when it returns: http://jsfiddle.net/mFRZP/
Element helpers are all beautiful and beautiful for quick work, but you really want control and clarity to know what you are doing.
You cannot use Request.HTML when you can use Request.
source share