Skip to main content

Bug Tracker

Side navigation

#4438 closed bug (worksforme)

Opened March 27, 2009 03:28PM UTC

Closed August 09, 2009 01:49AM UTC

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>

Attachments (0)
Change History (3)

Changed March 27, 2009 03:29PM UTC by shamuntoha comment:1

// 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>

Changed March 27, 2009 11:26PM UTC by jerone comment:2

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

Changed August 09, 2009 01:49AM UTC by dmethvin comment:3

resolution: → worksforme
status: newclosed

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