• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic