In web application how to show gif(eg., loading pls wait.....) while doing some process-calculation in the application server

Posted on 2003-03-12
Medium Priority
Last Modified: 2011-09-20
I have a web application runs in websphere. It has a massive calculation engine. So when i call that calculation from the front-end(jsp) it takes sevral seconds to complete the calculation. At this point i want to show some message with a gif(a clock ticking). So when i submit the page for calculation i call a jsp with the message and gif. And onload of the page i am calling the calculation. At the end of the calculation i call some other jsp. Now the problem is, gif loaded in the intermediate jsp is not animating(clock is not ticking). I have seen in some web pages when you do a search they display some gif-animation until they are ready with the results. How to do this?
Question by:karnan

Accepted Solution

JNSTAUB earned 280 total points
ID: 8153202
assuming your animationiss in frame "haut2"
in your main frame, in client script yu intercep the action which generate the calculation and add this script before to navigate to the calculation form:

set wdoc=parent.frames("haut2").document
for each element in wdoc.all
if element.tagname="IMG"  then
end if
window.navigate dest(where you perform the calculation)

in the window onload event of your main frame, activated when you send the calculation results, you add the same script with :visibility="hidden"
in my case i use IIS and ASP,the image is a gif animated and it' s working fine.The animation is done on client side and the calculation on the server.you need frames to do it.


Expert Comment

ID: 9447180
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question