aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark ""Please wait ...." message to be displayed" Watch ""Please wait ...." message to be displayed" New topic
Author

"Please wait ...." message to be displayed

manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
There are many ways to display the message “please wait while ….” when the page is loading.
But in our application,
We have to display the same message when the report file (xls,pdf etc) is opening.

For this, we have one jsp file say ‘abc.jsp’ and this jsp calls a servlet say ‘file.class’.
File.class takes some parameters like report_id and report_location (location at server) passed by abc.jsp.

If we apply the window.onload = <some function() > to display the “please wait…” message, it does not work.

And if we remove the concept of servlet and simply replace the window using location.href and assign the location like-

Location.href = “http://abc.com//xyz/infy/mnc.xls” then problem comes as – when abc.jsp is opening that time the “wait…” message comes for short time but as soon as the url is replaced with “http://abc.com//xyz/infy/mnc.xls” , the “wait…” message disappears. I know this is happening because of new page on the same window. So can we have message while the link takes time to get open. Because this is our actual requirement. And we want to show the message to users when any huge size file is opening.

Any suggestion??

Thanks,
Manisha
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61752
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is nothing you can do to ake it show up on that other page. Iframes, Frames, or pop ups would be your only solution and each of them have their major issues.

Eric
Anwar Hussain
Ranch Hand

Joined: Jul 24, 2009
Posts: 35
manisha gupta wrote:There are many ways to display the message “please wait while ….” when the page is loading.
But in our application,
We have to display the same message when the report file (xls,pdf etc) is opening.

For this, we have one jsp file say ‘abc.jsp’ and this jsp calls a servlet say ‘file.class’.
File.class takes some parameters like report_id and report_location (location at server) passed by abc.jsp.

If we apply the window.onload = <some function() > to display the “please wait…” message, it does not work.

And if we remove the concept of servlet and simply replace the window using location.href and assign the location like-

Location.href = “http://abc.com//xyz/infy/mnc.xls” then problem comes as – when abc.jsp is opening that time the “wait…” message comes for short time but as soon as the url is replaced with “http://abc.com//xyz/infy/mnc.xls” , the “wait…” message disappears. I know this is happening because of new page on the same window. So can we have message while the link takes time to get open. Because this is our actual requirement. And we want to show the message to users when any huge size file is opening.

Any suggestion??

Thanks,
Manisha





Popup window is the best solution where in you can generate the report in popup.You can display the wait message in the popup itself.
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
hi Anwer,

Thanks for replying!

but the url of the report that we want to open gets changed in abc.jsp. and the message disappers when the url is changed.
we dont want to display the message when abc.jsp page is loading, but when the actaul report get start downloading

tried every possible way ...but couldnt get resolve

Thanks,
Manisha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Please wait ...." message to be displayed