#13728 closed bug (notabug)
Parent page cannot bind ajaxComplete event to an iframe's document
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
=[ Description ]=
- The "parent" page has an iframe.
- The "parent" page binds an ajaxComplete event on the iframe's document.
- The iframe performs some ajax.
Expectation: ajaxComplete is called. Reality: ajaxComplete is not called and no error appears in chrome's inspect element.
=[ Browser & OS ]=
- jQuery v1.9.1
- chrome v24.0.1312.70
- linux mint 11
Change History (5)
comment:1 Changed 10 years ago by
comment:2 follow-up: 3 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
I would think it's possible to model this in jsFiddle, or at jsbin.com. you just need both pages to be on the same domain. Either site can do ajax. We can't triage the bug report without some more information and a test case.
comment:4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Okay I see what you're doing now, although it would have to be like this: http://jsfiddle.net/bT33Z/6/
The problem is that you are attaching an ajaxComplete
event handler to the parent's jQuery event system but triggering that event in the child's event system where the handler does not exist. You need to attach the handler in the child.
comment:5 Changed 10 years ago by
Sorry to waste your time. Your response speed is incredible! Have a great day.
Is that possible for you to build the example somewhere else to show the problem? As you have stated that you "Cannot emulate the issue on JSFIDDLE because it involves an iframe and jquery".
Also, is this behaviour intentionally designed?