net.MultiIframeLoadMonitor Extends
Provides a wrapper around IframeLoadMonitor, to allow the caller to wait for multiple iframes to load.

Inheritance

Constructor

goog.net.MultiIframeLoadMonitor(iframescallbackopt_hasContent)

Parameters

iframes : Array.<HTMLIFrameElement>
Array of iframe elements to wait until they are loaded.
callback : function():void
The callback to invoke once the frames have loaded.
opt_hasContent : boolean=
true if the monitor should wait until the iframes have content (body.firstChild != null).

Instance Methods

Public Protected Private
callback_()
Callback which is invoked when all of the iframes are loaded.
code »
handleEvent(e)
Handles a pending iframe load monitor load event.
Arguments:
e : goog.events.Event
The goog.net.IframeLoadMonitor.LOAD_EVENT event.
code »
stopMonitoring()
Stops monitoring the iframes, cleaning up any associated resources. In general, the object cleans up its own resources before invoking the callback, so this API should only be used if the caller wants to stop the monitoring before the iframes are loaded (for example, if the caller is implementing a timeout).
code »

Instance Properties

pendingIframeLoadMonitors_ :
Array of IframeLoadMonitors we use to track the loaded status of any currently unloaded iframes.
Code »

Package net

Package Reference