Forums

On Submit display image?

DesignLots 23 May, 2009
Hi all,

As an alternative to having an upload progress bar, which seems quite involved for a designer like me and is unanswered in the forums so far, Is there a way of using the "On Submit code" in the back end to display a small loading gif next to the file upload field when the form is submitted?

Or

Alternatively using this method to display a "please wait" uploading message whilst a large file is uploaded?

Thanks😀
DesignLots 24 May, 2009
Thanks Fredrik,

This works a treat.
sbruemmer 10 Jan, 2012
Thanks Fredrik, for your solution.
I'd like to reopen this thread again, because i didn't find a solution that fits my needs...

I've implemented your draft and it works fine. The loading-button is shown, BUT also if the JS-Validation is NOT successfull! This is not useful🙂

Is there a way to fire a "showLoading"-function AFTER a successful form validation??
E.g. extend the onValidateSuccess-Event in the FormCheck-Class?


formCheck = new FormCheckMax('chronoform_id', {
   onValidateSuccess: $empty,
   display : { showErrors : 1 }
});


PS: where dfoes the "$empty" come from?

Cheers!
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}