Skip to content

Instantly share code, notes, and snippets.

@vaderj
Last active June 12, 2018 17:03
Show Gist options
  • Save vaderj/725f02b1a1d4f7b1dfe9be948b596c0b to your computer and use it in GitHub Desktop.
Save vaderj/725f02b1a1d4f7b1dfe9be948b596c0b to your computer and use it in GitHub Desktop.
screen update without refresh (with SP) #Javascript #SharePoint
function clearPostBack() {
$get('__EVENTTARGET').value = $get('__EVENTARGUMENT').value = '';
Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(clearPostBack);
// TODO: anything you want after __doPostBack
iterateList(jQuery("#scriptWPQ2 > table[summary='Resource Library'] > tbody > tr")) ;
}
function myPostBack(eventTargetClientId, eventArgument) {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(clearPostBack);
__doPostBack(eventTargetClientId, eventArgument);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment