Hi guys. I am discovering jQuery and i find it very attractive and
useful.

I just have a problem :

I used to have a form which allows me to display pictures submitted on
my website (to moderate them); it displayed 100 pictures at a time and
for each picture, i choose if i delete it or not. It was working fine
but it was really heavy (since once my form is submitted, i loaded the
next 100 and so on and so on...).

So i decided to use jQuery And the Ajax Form plugin to submit the form
in ajax and load my next 100 pictures while the moderation processing
is running, in order to save time! It's working great except that, the
more pages i moderate, the more memory firefox is using (like 5 Mb
more for each submitted form).

Let me show you a piece of code :

jQuery(function($) {
        $(function(){
                prepareForm();
        });
});

function prepareForm() {

        var options_form = {
                beforeSubmit: ** load my next 100 pictures **,
                error: ** what to do on error **,
                success: ** display a 'process done' message **,
                complete: prepareForm
        };
        $('#MyForm').ajaxForm(options_form);

}

Using this method, i can submit the form "for ever" since the ajaxForm
is set each time the process is complete.

Does anyone have an idea about this issue? I think it's somekind of
Firefox issue (it doesn't free the memory when i load my next 100
images).

PS : excuse my english if it's wrong, i'm french ^^

Reply via email to