Link to home
Start Free TrialLog in
Avatar of princehyderabad
princehyderabad

asked on

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
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

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&
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
Avatar of princehyderabad
princehyderabad

ASKER

cobol do you have any sample code for hidden layer .....
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
U mean:
function msg() {
document.getElementById('lyr').style.diplay='block';
}

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

Cd&
nothing is showing when I tried that ?
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&
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
SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Sure just post a new question.

Cd&