Sha256: 95453e322161ac2763e4273365bc23355eff609f3062c90645cd277b9469ae58

Contents?: true

Size: 397 Bytes

Versions: 44

Compression:

Stored size: 397 Bytes

Contents

function postInfo(path, data, cb) {
  var xmlHttp = new XMLHttpRequest();

  if (xmlHttp.overrideMimeType) {
    xmlHttp.overrideMimeType("text/plain; charset=x-user-defined");
  }

  xmlHttp.open('POST', path, !!cb);

  if (cb) {
    xmlHttp.onreadystatechange = function() {
      if (xmlHttp.readyState == 4) { cb.apply(this, arguments); }
    };
  }

  xmlHttp.send(data);
  return xmlHttp;
}

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
rex-exploitation-0.1.40 data/js/network/ajax_post.js
rex-exploitation-0.1.39 data/js/network/ajax_post.js
rex-exploitation-0.1.38 data/js/network/ajax_post.js
rex-exploitation-0.1.37 data/js/network/ajax_post.js
rex-exploitation-0.1.36 data/js/network/ajax_post.js
rex-exploitation-0.1.35 data/js/network/ajax_post.js
rex-exploitation-0.1.34 data/js/network/ajax_post.js
rex-exploitation-0.1.33 data/js/network/ajax_post.js
rex-exploitation-0.1.32 data/js/network/ajax_post.js
rex-exploitation-0.1.31 data/js/network/ajax_post.js
rex-exploitation-0.1.30 data/js/network/ajax_post.js
rex-exploitation-0.1.29 data/js/network/ajax_post.js
rex-exploitation-0.1.28 data/js/network/ajax_post.js
rex-exploitation-0.1.27 data/js/network/ajax_post.js
rex-exploitation-0.1.26 data/js/network/ajax_post.js
rex-exploitation-0.1.25 data/js/network/ajax_post.js
rex-exploitation-0.1.24 data/js/network/ajax_post.js
rex-exploitation-0.1.23 data/js/network/ajax_post.js
rex-exploitation-0.1.22 data/js/network/ajax_post.js
rex-exploitation-0.1.21 data/js/network/ajax_post.js