Bug Tracker

Ticket #4438 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

Attr bug.

Reported by: shamuntoha Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: attr bug Cc:
Blocking: Blocked by:

Description

FF works, but IE it doesnt works.Here is the following code, it works when used <div> <img id="id" /></div> but not for table -> img.

Jquery structure $(document).ready(function(){

$("#id").attr("src", "images/one.gif");

});

<table id="table1" border="0" width="100%"> <tr><td valign="top"> <img id="t1" width="100%" height="100%" /> </td></tr> </table>

Change History

comment:1 Changed 6 years ago by shamuntoha

Jquery structure $(document).ready(function(){

$("#t1").attr("src", "images/one.gif");

});

<table id="table1" border="0" width="100%"> <tr><td valign="top"> <img id="t1" width="100%" height="100%" /> </td></tr> </table>

comment:2 Changed 6 years ago by jerone

You need to pre-load the new image for IE.

comment:3 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

It seems to work for me on IE8, if I change the id typo.

Note: See TracTickets for help on using tickets.