Welcome Guest, Not a member yet? Register   Sign In
Display processing message whilst file upload
#1

[eluser]gh0st[/eluser]
I have developed a working image file upload which also creates a thumbnail, however when we put the site live I noticed that it can take several seconds with no visual communication of activity.

What I'm after is a basic message that is displayed on the page to say that the image is processing, it does not have to be a progressing bar -- just a simple message that disappears once the image has been uploaded.

I tried putting a view in my save() method (which does all the image manipulation) which outputs a message "Processing file", but it is never displayed.

Therefore, is there a way to output a basic message upon image upload?

Thanks.
#2

[eluser]n0xie[/eluser]
You can do this easily with javascript. Just show a 'loading' image which triggers on the 'on submit' event.
#3

[eluser]gh0st[/eluser]
Hi there.

Yes, I've done this now.

I did a JQuery effect where upon a form submission it will show a message with an ajax indicator saying "Loading..." and then the processing method redirects if there is an error/success message.

This has resolved the problem.

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB