goog.net.Jsonp |
uri
: goog.Uri | string
The Uri of the server side code that receives
data posted through this channel (e.g.,
"http://maps.google.com/maps/geo").
|
opt_callbackParamName
: string=
The parameter name that is used to
specify the callback. Defaults to "callback".
|
![]()
Cancels a given request. The request must be exactly the object returned by
the send method.
Arguments:
|
code » | |||||
Returns the current timeout value, in milliseconds.
Returns: number
The timeout value.
|
code » | |||||
Sends the given payload to the URL specified at the construction
time. The reply is delivered to the given replyCallback. If the
errorCallback is specified and the reply does not arrive within the
timeout period set on this channel, the errorCallback is invoked
with the original payload.
If no reply callback is specified, then the response is expected to
consist of calls to globally registered functions. No &callback=
URL parameter will be sent in the request, and the script element
will be cleaned up after the timeout.
Arguments:
Returns: !Object
A request descriptor that may be used to cancel this
transmission, or null, if the message may not be cancelled.
|
code » | |||||
![]()
Sets the length of time, in milliseconds, this channel is prepared
to wait for for a request to complete. If the call is not competed
within the set time span, it is assumed to have failed. To wait
indefinitely for a request to complete set the timout to a negative
number.
Arguments:
|
code » |
![]()
This is the callback parameter name that is added to the uri.
|
Code » | |
![]()
The length of time, in milliseconds, this channel is prepared
to wait for for a request to complete. The default value is 5 seconds.
|
Code » | |
The uri_ object will be used to encode the payload that is sent to the
server.
|
Code » |
Returns URL encoded payload. The payload should be a map of name-value
pairs, in the form {"foo": 1, "bar": true, ...}. If the map is empty,
the URI will be unchanged.
The method uses hasOwnProperty() to assure the properties are on the object, not on its prototype.
Arguments:
Returns: !goog.Uri
A reference to the Uri sent as a parameter.
|
code » | |||
![]()
Removes the script node and reply handler with the given id.
|
code » | |||
Creates a timeout callback that calls the given timeoutCallback with the
original payload.
|
code » | |||
Creates a reply callback that calls the given replyCallback with data
returned by the server.
|
code » |
![]()
The name of the property of goog.global under which the callback is
stored.
|
Code » | |
![]()
Used to generate unique callback IDs. The counter must be global because
all channels share a common callback object.
|
Code » |