• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Temporary page between process

Hello,

I have a jsp which write to server. ie Uploading files from local to server machine. And my files size range from 100MB to 500MB.
I need to ask 2 things.
 CAn I have a temperory page, once the form is submited,  Can I put some running image and a text to say "Writiing to Server...." something..etc.,
eg: while attaching file on yahoo mail


Thanks
0
princehyderabad
Asked:
princehyderabad
2 Solutions
 
COBOLdinosaurCommented:
You could use and iframe for the from the does the file upload, that would let code on the main page do whatever you want.  though loading another page is probably not a goo idea as it would reduce th e bandwidth available for the file upload. I would just put the unloading message in a hidden layer and display it after the upload starts.

Cd&
0
 
BinylkumarCommented:
Hi,

Hope this suggestion might help you....

You can do this using Javascript...When you choose upload btn you can trigger a popup window with an animated image saying "File is Uploading"

Bye
Binylkumar
0
 
princehyderabadAuthor Commented:
cobol do you have any sample code for hidden layer .....
0
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.

 
COBOLdinosaurCommented:
<div id="lyr"
style="width:200px;height:200px;position:absolute;left:100px;top:100px;z-index:10;display:none">
<h2> FILE IS UPLOADING...</h2>
<div>



When you are ready to show it just add this line to your script:

document.getElementById('lyr').style.diplay='block';

Cd&
0
 
princehyderabadAuthor Commented:
U mean:
function msg() {
document.getElementById('lyr').style.diplay='block';
}

...
<input type=submit name=upload onClick=javascript:msg()>
0
 
COBOLdinosaurCommented:
Yeah that looks about right.

Cd&
0
 
princehyderabadAuthor Commented:
nothing is showing when I tried that ?
0
 
COBOLdinosaurCommented:
try it this way:

function msg(arg) {
document.getElementById('lyr').style.diplay='block';
setTimeout('arg.submit()',500);
}

...
<input type="button" value="submit" name="upload" onClick="msg(this.form)">


Cd&
0
 
princehyderabadAuthor Commented:
I'm not getting any msg, though after 5 sec. form is getting submited. But not getting any msg of file uploading ... etc.,

-----------This was my code---------------

function msg(arg) {
document.getElementById('lyr').style.diplay='block';
setTimeout('arg.submit()',500);
}
<form ...>
...
<input type="button" value="submit" name="upload" onClick="msg(this.form)">
</form>
 <div id="lyr"
style="width:200px;height:200px;position:absolute;left:100px;top:100px;z-index:10;display:none">
<h2> FILE IS UPLOADING...</h2>
<div>

I also tried to put "lyr" inside the form tag but still didnt worked
0
 
ZylochCommented:
Lol, Cd& had it right. It was just a small typo. diplay should be display
0
 
princehyderabadAuthor Commented:
Guys can we make it more speicific or Animated Image related. Problem now I'm going thru is based on User screen (800pixel or 1024 px, or more ..) the display text is overlapping with other stuff.
0
 
COBOLdinosaurCommented:
Sure just post a new question.

Cd&
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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