This is the first you've mentioned data.php - unless you meant the
data.html you referenced above (and I'll assume it's supposed to be
data.php).

So I'm assuming:

data.php has the list of images you're wanting to return?
You're calling it and then you want those images to be loaded after
the request completes?
You may also want to change "onComplete" to "onSuccess" - "onComplete"
fires on success OR failure.

-kb

On Dec 5, 8:32 am, guillem <[EMAIL PROTECTED]> wrote:
> 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!

Reply via email to