I have implemented the partial refresh dialog control xsnippet you can find here: http://openntf.org/XSnippets.nsf/snippet.xsp?id=bootstrap-standby-dialog
For the cancel button I have altered the operation:
button onClick="StandbyDlg.StandbyDialog_Completed();xhrCall.cancel();
So it should also abort the partial refresh operation.
I notice I am getting errors now, which is to be expected as described here.
Unfortunately I have problems understanding the suggested solution ("To solve this you have to add a custom error handler to your refresh, f.e.").
Where and how should I add that in the xsnippet?