Skip to content
jmarnold edited this page Jul 7, 2012 · 2 revisions

Overview

The following policies are registered by default.

refreshPolicy

(matches when the refresh property is true)

Invokes the $.continuations.windowService.refresh() method to refresh the browser. This is mostly useful during development.

navigatePolicy

(matches when the navigatePage property is set)

Invokes the $.continuations.windowService.navigateTo() method to change the location of the page (i.e., location.assign) for client-side redirects.

redirectPolicy

(matches when the statusCode is not 200 and the Location header is set)

Invokes the $.continuations.windowService.navigateTo() method to change the location of the page (i.e., location.assign) for client-side redirects.

This differs from the navigatePolicy by using the HTTP headers versus explicit properties on the continuation.

errorPolicy

(matches when the error collection is not empty)

Triggers the ContinuationError event.

httpErrorPolicy

(matches when the statusCode is not 200)

Triggers the HttpError event.