Source Error

Another type of error is loading errors. Whenever an html-fragment fail to load using source: the callback pager.onSourceError will be fired with an object {page:,url:,xhrPromise:}. It is also possible to listen to the event by registering a callback on the page-binding instead using onSourceError: someSourceErrorCallback.

<div data-bind="page: {id: 'start', source: 'this-url-does-not-exist.html'}">
</div>
where the JavaScript is
pager.onSourceError.add(function(event) {
    var page = event.page;
    $(page.element).empty().append($('<div></div>', {text: 'Error loading page ' + url, "class" : 'alert'}));
});