The iframe element doesn't support any events[1].
You can indeed listen to the load event directly from the IFrame
element.
http://pastie.org/493154
The document that it contains may support various events (such as load,
click, etc.).
Why would a document inside an iframe not support these
I'm pretty sure you can listen to the iframe's load event for that...
I don't think it bubbles so you'll have to listen to it on the iframe
itself and not on a parent.
I use that event extensively in my ajax history solution,
This works fine as long as the iframe stays in the current domain. If
it strays outside that, you get a permission error. The person who was
after this wanted an iframe that would expand to hold its contents
without hiding any of them or displaying scroll bars (not sure why,
exactly).
You could find a list of all events and listen to them each, there
isn't an all operator to listen to any event that is fired as far as
I know...
function allYourEventAreBelongToUs(e){
console.log(You hit an event %o, e);
}
$w(load unload click dblclick ...).each(function(evenType){
Thanks, it appears that the only way that I'll be able to work around
this is with a timed observer pattern, there doesn't seem to be an
event fired by an iframe into the page context when its src changes.
The underlying problem was how to keep an iframe sized to match its
contents. While
On May 22, 12:11 am, Walter Lee Davis wa...@wdstudio.com wrote:
I'd like to see what events are there for the observing, particularly
on an iframe.
The iframe element doesn't support any events[1]. The document that
it contains may support various events (such as load, click, etc.).
Is