Okay guys, i fon't a way (thanks mister google) to make it work:
//on dom ready...
window.addEvent('domready', function() {
/* ajax replace element text */
$('ajax-replace').addEvent('click', function(event) {
//prevent the page from changing
event.stop();
//make the ajax call, replace text
var req = new Request.HTML({
method: 'get',
url: $('ajax-replace').get('href'),
data: { 'do' : '1' },
onRequest: function() {$('message-here').set('html',
'<img
src="loader.gif" /> chargement...');},
update: $('message-here'),
onComplete: function(response) {
$('gauche').tween('width',975);
}
}).send();
});
});
<strong>But it still incomplete!</strong>
Is there a way for mootools to wait for images to be fully loaded into
data.php?
Thanks again!