Modify ↓
Ticket #1333 (closed bug: wontfix)
$.ImageBox.init fails in IE with <div id="container">
| Reported by: | russback | Owned by: | stefan |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.3 |
| Component: | interface | Version: | 1.1.2 |
| Keywords: | imagebox, object, container | Cc: | |
| Blocking: | Blocked by: |
Description
When using ImageBox within a div with ID "container", I get an error in IE6:
<div id="container">
<div id="productcolumnone">
<p>
<a href="images/imagebox/bw1.jpg" title="Moon eclipse" rel="imagebox-bw"><img src="images/imagebox/th_bw1.jpg"></a>
<a href="images/imagebox/bw2.jpg" title="Rain drops" rel="imagebox-bw"><img src="images/imagebox/th_bw2.jpg"></a>
<a href="images/imagebox/bw3.jpg" title="Church" rel="imagebox-bw"><img src="images/imagebox/th_bw3.jpg"></a>
</p>
</div>
</div>
The error is "Object doesn't support this property or method" on the line $.ImageBox.init
Changing the id from "container" to something else works but the template I am inserting into is not available to edit. Suggest this is a bug as it should be independent of surrounding source code
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I've managed to get around this by replacing all references in the iutil and imagebox files:
Old: containerXXXXXX New: _containerXXXXXX