Closed Bug 177552 Opened 22 years ago Closed 22 years ago

Setting image.src via Javascript doesn't reload image

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 176926

People

(Reporter: shakahshakah, Assigned: jst)

Details

Attachments

(1 file)

In Build ID 2002102704, setting image.src via Javascript doesn't reload the
image. Works in previous versions of Mozilla (don't know exactly when it broke,
but it seems like sometime in October) and in IE.

Will attach sample HTML file that demonstrates the problem, but in a nutshell
the assignment in the following Javascript block has no effect:

  <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript1.2">
  <!--
    function doImageSwitch() {
      alert(document.getElementById("the_image").src) ;
      document.getElementById("the_image").src =
"http://images.slashdot.org/topics/topicprogramming.gif" ;
      alert(document.getElementById("the_image").src) ;
    }
  //-->
The calls to alert() demonstrate that the .src attribute is not being set by
the assignment.

*** This bug has been marked as a duplicate of 176926 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: