goog.events.EventType.LOAD
event for each image loaded, with an Image
object as the target of
the event, normalized to have naturalHeight
and naturalWidth
attributes.
To use this class, run:
var imageLoader = new goog.net.ImageLoader(); goog.events.listen(imageLoader, goog.net.EventType.COMPLETE, function(e) { ... }); imageLoader.addImage("image_id", "http://path/to/image.gif"); imageLoader.start();The start() method must be called to start image loading. Images can be added and removed after loading has started, but only those images added before start() was called will be loaded until start() is called again. A goog.net.EventType.COMPLETE event will be dispatched only once all outstanding images have completed uploading.
WebChannelTransport
instance. It is up to the underlying client-side
and server-side implementations to decide how or when multiplexing is
to be enabled.
![]()
Error codes
Constants:
|
Code » | |||||||||||||||||||||||||||||||||||||||||||
![]()
Event names for network events
Constants:
|
Code » | |||||||||||||||||||||||||||||||||||||||||||
![]()
HTTP Status Codes defined in RFC 2616.
Constants:
|
Code » |
![]()
No description.
|
code » | |
![]()
Static class for creating XMLHttpRequest objects.
Returns: !goog.net.XhrLike.OrNative
A new XMLHttpRequest object.
|
code » | |
![]()
No description.
|
code » | |
Create a new WebChannelTransport instance using the default implementation.
Returns: !goog.net.WebChannelTransport
the newly created transport instance.
|
code » |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
A static default instance.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » |