Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 25th, 2012  |  syntax: None  |  size: 0.96 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var sbe = data.getElementsByTagName('servicebroker')[0];
  2.           if (sbe.getAttribute('disabled')!='true')
  3.           {
  4.               App.mq.sbconfig.url = sbe.childNodes[0].nodeValue.replace(/@{rootPath}/,"/");
  5.               App.mq.sbconfig.cookieName = data.getElementsByTagName('sessionid')[0].childNodes[0].nodeValue;
  6.               swiss.ajax({
  7.                 type: 'GET',
  8.                 url: App.mq.sbconfig.url+"?initial=1",
  9.                 success: function(data){
  10.                   App.mq.sbconfig.sessionId = getCookie(App.mq.sbconfig.cookieName);
  11.                   App.mq.sbconfig.authToken = App.mq.md5.hex_md5(App.mq.sbconfig.sessionId+App.mq.sbconfig.instanceId);
  12.                 },
  13.                 error: function(xhr) {
  14.                   $MQ({
  15.                     name: "service.broker.config.fetch.error",
  16.                     payload: swiss.unfilterJSON(xhr.responseText)
  17.                   });
  18.                 }
  19.               });
  20.           }
clone this paste RAW Paste Data