Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6784 closed defect (wontfix)

Setting location.href or iframe.src destroys all ContentPanes in IE

Reported by: [email protected] Owned by:
Priority: blocker Milestone:
Component: Dijit Version: 1.1b1
Keywords: ContentPane location href iframe Cc:
Blocked By: Blocking:


If you have a dijit.layout.ContentPane? in a web page, setting the location.href of the window will destroy the ContentPane? and everything contained within it in IE (tested on IE 6 and 7). This happens if the location is changed using an anchor or a form or javascript. I also saw the same behaviour setting the src of an iframe.

This is a serious problem because it makes downloading attachments impossible if you use ContentPanes?. An attachment is usually downloaded by getting a url with a Content-Disposition of 'attachment', so the user will be prompted to save or open the file, but the web page they are currently on remains the same. If the web page has ContentPanes?, the current pages content panes are destroyed.

Attachments (1)

test_ContentPane_location.html (2.7 KB) - added by guest 14 years ago.
ContentPane? location.href test

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by guest

ContentPane? location.href test

comment:1 Changed 14 years ago by bill

Cc: [email protected] removed
Reporter: changed from guest to [email protected]
Resolution: wontfix
Status: newclosed

Sure, IE is "sensitive" this way, that even setting the window's location.href to the same value it used to be will reset the page. There was a ticket about a similar problem recently because the developer was doing <a href="javascript: ..."> and that was messing things up too.

So, what you are trying to do just isn't supported. I think though that you could try setting location.hash instead.

comment:2 Changed 14 years ago by bill

See #6786, maybe this ticket should be marked as a duplicate rather than wontfix (not that it matters much).

Note: See TracTickets for help on using tickets.