Ticket #9539 (closed bug: invalid)
$(element).remove() with iframe included make a request to the iframe-src
| Reported by: | dimitri.bountsman@… | Owned by: | dimitri.bountsman@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | manipulation | Version: | git |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
var aHtml='<div id="x"><iframe src=" http://localhost..../"/></div>' var dlg = $(aHtml).dialog(...close:function(){dlg.remove()})
the invocation of: dlg.remove() causes jquery to make a request to the iframe-src.
dlg.empty().remove() helped us out.
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to dimitri.bountsman@…
- Status changed from new to pending
- Component changed from unfiled to manipulation
comment:2 Changed 2 years ago by dimitri.bountsman@…
- Status changed from pending to new
any time the dialog is closed, the request to the url (from iframe src) is executed. This can be seen e.g in the NET-tab of Firebug.
comment:3 Changed 2 years ago by timmywil
- Priority changed from undecided to low
- Status changed from new to closed
- Resolution set to invalid
I don't see a problem in jQuery core. http://jsfiddle.net/timmywil/TaypA/5/ If this is an issue with jQuery UI, I recommend submitting an issue on the jQuery UI Bug Tracker
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.