Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting an Animated Image to Work
#1
I thought I was doing something pretty simple, making a popup with an animated image of an hour glass that spins while some field read and writes occur, but just can't get it to animate. I did it three ways:

(1) I used a static animated image, put it in a popup, and then executed the 10-15 commands in [onload] and end it with an exit. It does pop up and exit as wanted, but I can't get it to spin (or be animated).

(2) If I take that same image, delete all of the code in [onload] and execute it by itself, it will spin.

(3) If I put it in a popup, put a settimeout command in the onload, it will spin.

Why won't it spin in option (1).
Reply
#2
Because the timers that drive the updates can't run while those commands are happening. They can't be started until the popup is fully up and running, since initialization is still going on, and those timers could cause things to happen simultaneously, which would be bad.

In theory the things that were allowed during such a situation could be artificially limited, but that would require yet another significant bit of work to insure that. So I'd have to look at what would be the smartest way to deal with that. Probably there wouldn't be a smart way, just a tedious (and easily broken) way.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Admin Interface Help Doesn't Work alexismtz13 1 250 04-28-2022, 01:14 PM
Last Post: Dean Roddey
  Is there a way to have an image displayed that is not imported? ghurty 3 1,051 04-28-2020, 04:22 PM
Last Post: Dean Roddey
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 1,155 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Animated PNG chmilar 1 672 03-16-2020, 05:47 PM
Last Post: Dean Roddey
  Issues after Acronis True image clone Ron Haley 4 1,782 02-14-2020, 03:44 PM
Last Post: Dean Roddey
  Changing WebRIVA Splash Image? gReatAutomation 4 1,786 01-07-2020, 05:28 PM
Last Post: gReatAutomation
  Increment web image widget NishanF 5 2,072 10-24-2019, 08:16 AM
Last Post: Dean Roddey
  Display of an Extended Wait for User Image kblagron 4 1,979 09-20-2019, 02:21 PM
Last Post: kblagron
  Button Click changes button image? gReatAutomation 6 2,276 08-05-2019, 03:53 PM
Last Post: Dean Roddey
  Can the ecobee lite work with CQC? ghurty 1 1,017 07-22-2019, 12:56 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)