PDA

View Full Version : detect iframe load event



ttbgwt
25 Apr 2012, 9:33 AM
I have the following code to load an iframe, how can I detect when the src url has loaded within the iframe?



xtype: 'component',
autoEl: {
tag: 'iframe',
src: XYZ.common.Url.hostPath() + 'docs/gen/restapi/#!/guide',
height: '100%',
width: '100%'
}

scottmartin
25 Apr 2012, 6:19 PM
Would placing a listener: 'afterrender' work? I am not sure about detecting of the page has completely loaded.

Regards,
Scott.

khmurach
26 Apr 2012, 6:41 AM
Try this http://ext4all.com/post/detect-iframe-load-event