"<a class=\"yui3-pjax\" href=\""+base+"page2.html\">page2</a> "+
"<a class=\"yui3-pjax\" href=\""+base+"page3.html\">page3</a> "+
"<a class=\"yui3-pjax\" href=\""+base+"page4donotexits.html\">page4 - do not exists</a> "+
"<div id=\"pjaxcontent\" style=\"\">original content</div>");
Pjax pj1 = Y.newPjax(PjaxConfig.create().container("#pjaxcontent"));
//note for not casting EventFacade to subclass PjaxEvent
pj1.on("error", new EventCallback<PjaxEvent>() {
@Override
public void call(PjaxEvent e) {
Window.alert("PJAX ERROR: node: "+e.content().node());
}
});