Edit this page

up.network up:request:loaded
DOM event

This event is emitted when the response to an AJAX request has been received.

Note that this event will also be emitted when the server signals an error with an HTTP status like 500. Only if the request encounters a fatal error (like a loss of network connectivity), up:request:offline is emitted instead.

The event is emitted on the layer that caused the request.


Event properties

event.request up.Request

The request.

event.response up.Response

The response that was received from the server.

[event.layer] up.Layer optional

The layer this request is associated with.

If this request is intended to update an existing fragment, this is that fragment's layer.

If this request is intended to open an overlay, the associated layer is the future overlay's parent layer.

[event.origin] Element optional

The link or form element that caused the request.