Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Show pop up message while document upload in process

I am using JspSmartUpload Component, for file upload.
if i upload some large file it is taking while to upload, so mean while i want to show a pop up message saying that Uploading is under progress and a dotted ...........or a square boxes, i know with a javascript it is possible but how to show that pop up if it is taking more time and for some files it will be fraction of a second, so the pop up message should close after upload is down complete.
As soon as upload is complete ishould close this pop up, the pop up should stay until upload completes, i have a javascript which does only 5 or 6 seconds .....wait than closes the pop up message.
Any help greatly appreciated.

thannx

0
vpenta
Asked:
vpenta
  • 3
  • 3
1 Solution
 
kennethxuCommented:
when use click upload button, fire a javascript to change your page content to show waiting message, then submit the form.
0
 
vpentaAuthor Commented:
Do you have any sample code for it, didn't get you properly.

thanx.
0
 
kennethxuCommented:
this is a very simple example to illustrate the idea, it runs on IE:

<FORM ENCTYPE="multipart/form-data" ACTION="upload.jsp" METHOD=POST>
    File to process: <INPUT NAME="userfile1" TYPE="file">
    <INPUT TYPE="submit" VALUE="Send File" onclick="aaa.style.visibility='visible'">
</FORM>
<div id="aaa" style="visibility:hidden">please wait</div>

the detail of how to show and hide div tag on all version of browser can be found here:
http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=6309
0
Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

 
vpentaAuthor Commented:
Cool, Your GR8 !!!!!
worked.
thanx.
0
 
vpentaAuthor Commented:
kennethxu, will it works in Netscape ?

thanx
0
 
kennethxuCommented:
it don't think it works for netscape, the link i provided have the detail of how to make this work with netscape.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now