iframeio.js
No description.

File Location

/goog/net/iframeio.js

Classes

goog.net.IframeIo
Class for managing requests via iFrames.
goog.net.IframeIo.IncrementalDataEvent
Class for representing incremental data events.

Public Protected Private

Global Functions

goog.net.IframeIo.addFormInputs_(formdata)
Adds the key value pairs from a map like data structure to a form
Arguments:
form : HTMLFormElement
The form to add to.
data : Object | goog.structs.Map | goog.Uri.QueryData
The data to add.
code »
goog.net.IframeIo.getForm_() !HTMLFormElement
Gets a static form, one for all instances of IframeIo since IE6 leaks form nodes that are created/removed from the document.
Returns: !HTMLFormElement  The static form.
code »
goog.net.IframeIo.getIframeByName(fname) HTMLIFrameElement
Find an iframe by name (assumes the context is goog.global since that is where IframeIo's iframes are kept).
Arguments:
fname : string
The name to find.
Returns: HTMLIFrameElement  The iframe element with that name.
code »
goog.net.IframeIo.getInstanceByName(fname) goog.net.IframeIo
Find an instance of the IframeIo object by name.
Arguments:
fname : string
The name to find.
Returns: goog.net.IframeIo  The instance of IframeIo.
code »
goog.net.IframeIo.getNextName_() string
No description.
Returns: string  The next iframe name.
code »
goog.net.IframeIo.handleIncrementalData(windata)
Handles incremental data and routes it to the correct iframeIo instance. The HTML page requested by the IframeIo instance should contain script blocks that call an externed reference to this method.
Arguments:
win : Window
The window object.
data : Object
The data object.
code »
goog.net.IframeIo.send(uriopt_callbackopt_methodopt_noCacheopt_data)
Static send that creates a short lived instance of IframeIo to send the request.
Arguments:
uri : goog.Uri | string
Uri of the request, it is up the caller to manage query string params.
opt_callback : Function=
Event handler for when request is completed.
opt_method : string=
Default is GET, POST uses a form to submit the request.
opt_noCache : boolean=
Append a timestamp to the request to avoid caching.
opt_data : Object | goog.structs.Map=
Map of key-value pairs that will be posted to the server via the iframe's form.
code »
goog.net.IframeIo.useIeReadyStateCodePath_() boolean
No description.
Returns: boolean  Whether we can use readyState to monitor iframe loading.
code »

Directory net

File Reference