RSS

Monthly Archives: April 2013

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

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 🙂

 
1 Comment

Posted by on April 30, 2013 in javascript

 
 
%d bloggers like this: