This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

animation in struts while searching

 
partha chaudhuri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developed a j2ee application with struts 1.2.9.
In the jsp page when i click the search button it is going to the action class---ejb--DAo and returning to the jsp page.
It is working fine.

Now my problem is when i am hitting search button and the data coming back from server and repainted the jsp page, i need to show animation( that it searching record ).
I want to use coomon animation code to use for all the jsp pages.
Can any one help me as it is urgent.

Thanks and regards,
Partha Sarathi Chaudhuri
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest using an animated GIF file for this. This is a graphics file that has its animation built-in so that you don't have to do any JavaScript Animation.

If you download the example code for the bookASP.NET Insider Solutions you will find some progress bar animations that you can use.
 
partha chaudhuri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am not clear what you said.
could you please elaborate with code.
how can i use a popup animation while searching.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is a sample JSP showing one way to do a progress bar. The way this code works is that You have both the main part of the page and the progress bar part included in the page in different <div> tags. When the page is first displayed, the main part of the page is visible, but the progress bar is not. When the form is submitted, the JavaScript gowait() function makes the main part of the page invisible and the progress bar visible.

I got the image used in the page (images/progressbar10.gif) by clicking on the "download example code" link in this page, which is the link I gave you in my last post.

Here is the JSP:



Ideas for this technique were originally gleaned from this thread.
[ May 24, 2006: Message edited by: Merrill Higginson ]
 
partha chaudhuri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help.
It is working.
Partha
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic