Skip to content

Instantly share code, notes, and snippets.

@slemarchand
Last active September 1, 2016 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slemarchand/43f14dd4da8be005664ac36cc25f8116 to your computer and use it in GitHub Desktop.
Save slemarchand/43f14dd4da8be005664ac36cc25f8116 to your computer and use it in GitHub Desktop.
var portletId = '15';
var authToken = Liferay.authToken;
var url = '/en_US/group/control_panel/manage?p_auth=' + authToken + '&p_p_id=137&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&refererPlid=565250&_137_struts_action=%2Fadmin_server%2Fedit_server';
var data = '_137_formDate=1472741233467&_137_cmd=reindex&_137_tabs1=server&_137_tabs2=&_137_tabs3=&_137_redirect=&_137_portletId=' + portletId + '&_137_tabs2TabsScroll='
var httpRequest = new XMLHttpRequest()
httpRequest.open('POST', url, true);
httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httpRequest.send(data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment