Animated gif/jpg

  • Thread starter Thread starter Tlink
  • Start date Start date
T

Tlink

Is it possible to activate a animated item once the form/page is submitted
for processing, as I have a number of forms that take a while and the users
keep submitting the page thereby restarting the process.
Any help would be appreciated.
 
Your main goal should be to prevent users from submitting your forms more
than once. There is plenty of good sample code on different ways to do this.
Regarding showing an animated gif, once you set the src property of the
image control, the gif will be loaded and start playing. There are many other
ways to show a "working..." message while a long running process is
completing.
Peter
 
Hey Peter,

Actually I think it's surprisingly difficult to get images to work correctly
in these scenarios because IE has issues starting up animated gif's from
invisible or hidden content. If I remember right the only thing I got to
work consistently was to use a frame container with the message display
loaded into that.

http://west-wind.com/weblog/posts/1227.aspx

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com/weblog
 
in general the browser will not an animation tread (or download a new
image) while a postback is processing. caching the imag, starting the
animation, then delaying the postback (use setTimeout to do the submit)
sometimes works.

-- bruce (sqlwork.com)
 
Back
Top