RSS

Have to Show -> “Please wait while your file(s) upload”

30 Apr

While uploading files have to show message “Please wait while your file(s) upload” with a gif rotator to keep user awaited in case of large file upload. Not a heavy functional file status uploader is required only file uploading in progress is to be shown. If this is what required then this post is definitely for you.

Well you have an upload button like

< input type="submit" value="Upload" onclick="showRotator();" />

Yes, only add onclick event to show a div that contain a rotator with message to prompt user about the uploading.

< div id=”rotator” style=”display: none;” >< img alt=”” src=”loading.gif” width=”20px” height=”20px” />  Please wait while your file(s) upload.< /div>

And here goes the js function

function showRotator()
{
document.getElementById('rotator').style.display = 'block';
}

Pretty Simple 🙂

Advertisements
 
1 Comment

Posted by on April 30, 2013 in javascript

 

One response to “Have to Show -> “Please wait while your file(s) upload”

  1. Zaheerkhan wadhio

    May 4, 2013 at 6:14 am

    Tera naam sun jo insaan apni ungliya choomey
    Hum un insaano ke qadam chooma karty hai
    YA RASOOL U LLAH
    YA HABIB ALLAH

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: