Bug Tracker

Opened 14 years ago

Closed 14 years ago

#4438 closed bug (worksforme)

Attr bug.

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

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 (3)

comment:1 Changed 14 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 14 years ago by jerone

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

comment:3 Changed 14 years ago by dmethvin

Resolution: worksforme
Status: newclosed

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

Note: See TracTickets for help on using tickets.