Closed Bug 90040 Opened 23 years ago Closed 23 years ago

The play function doesn't work.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 62288

People

(Reporter: tguyot, Assigned: joki)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010628 BuildID: 2001062815 This page contains a function to play x number of satellite image (usually taken with one hour interval). When you press the Play button it shows the next image in the range and stop. It worked well under Netscape 4.77 Reproducible: Always Steps to Reproduce: 1. Load the page :p 2. Under the satellite image check the radio button labelled "Display the last 6 images" (Or more, like you wish) This will preload all images into the browser cache. Also, the "Time Frame" range should be automaticaly set from the first image preloaded to the last one available. 3. Press the "Play" button on top. Actual Results: It show the next image and hang. Expected Results: Display all images in the "Time Frame" range with an aproximate pause of 200 ms between each image. When it reach the last image it pause for about two seconds and start over.
Seeing with PC Linux 2001070806.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OK, the main JavaScript function here is called animate(). When you hit the play button, this function sets the SRC attribute of the IMG to the first weather photo in a sequence of photos. Then the onLoad handler of the <IMG> is supposed to call animate(), which then loads the next weather photo into the SRC attribute of the <IMG>: <IMG NAME='animation' SRC='/satellite/data//goes_ecan_visible_m_2001@07@09_20h45m.jpg' ALT='[Animation]' setTimeout('animate()', delay)"> This works in NN4.7, but is not working in Mozilla. The animate() function does not seem to be called reliably from the onLoad handler of the <IMG>. I will attach an HTML file with debugging alerts to show this -
Try the HTML with debugging alerts in NN4.7 and then in Mozilla. You will see completely different behavior, as the onLoad handler does not seem to call animate() recursively in Mozilla as in NN4.7. In NN4.7 you'll need both hands to stop this: keep your left hand on the "Enter" key to dismiss all the alerts, and at the same time, click the "Stop" button on the web page to stop all this... In Mozilla it's not a problem, since the recursion doesn't occur.
OS : Win --> All. Reassigning to Event Handling. cc'ing jst in case he already knows about this issue ...
Assignee: rogerl → joki
Component: Javascript Engine → Event Handling
OS: Windows 2000 → All
QA Contact: pschwartau → madhur
Okay, this might be dup of bug 62288 (No onload events after first load of image).
Asko is correct: here is the description of bug 62288: > It seems that none of Mozilla 0.6, nor M18, nor Netscape 6.0, report an > onLoad event for the loading of an Image object, nor for subsequent > reassignments of the src property of an image that's defined as part of a > web page's HTML. This differs from the behavior of NS3, NS4, IE4, and IE5. That's exactly what's going wrong here - NOTE: I inadvertently chopped off part of the <IMG> when I pasted it above. Here it is in its entirety, with the onLoad handler visible: <IMG NAME='animation' SRC='/satellite/data//goes_ecan_visible_m_2001@07@09_20h45m.jpg' ALT='[Animation]' onload="setTimeout('animate()', delay)">
*** This bug has been marked as a duplicate of 62288 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified dup
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: