Sha256: ff10b707ac05e29c29ce7c84edb8778b0397df63377bc2ddef3cd2a01313b860

Contents?: true

Size: 508 Bytes

Versions: 41

Compression:

Stored size: 508 Bytes

Contents

function ajax_download(oArg) {
  if (!oArg.method) { oArg.method = "GET"; }
  if (!oArg.path)   { throw "Missing parameter 'path'"; }
  if (!oArg.data)   { oArg.data = null; }

  var xmlHttp = new XMLHttpRequest();

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

  xmlHttp.open(oArg.method, oArg.path, false);
  xmlHttp.send(oArg.data);
  if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
    return xmlHttp.responseText;
  }
  return null;
}

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rex-exploitation-0.1.20 data/js/network/ajax_download.js
rex-exploitation-0.1.19 data/js/network/ajax_download.js
rex-exploitation-0.1.18 data/js/network/ajax_download.js
rex-exploitation-0.1.17 data/js/network/ajax_download.js
rex-exploitation-0.1.16 data/js/network/ajax_download.js
rex-exploitation-0.1.15 data/js/network/ajax_download.js
rex-exploitation-0.1.14 data/js/network/ajax_download.js
rex-exploitation-0.1.13 data/js/network/ajax_download.js
rex-exploitation-0.1.12 data/js/network/ajax_download.js
rex-exploitation-0.1.11 data/js/network/ajax_download.js
rex-exploitation-0.1.10 data/js/network/ajax_download.js
rex-exploitation-0.1.9 data/js/network/ajax_download.js
rex-exploitation-0.1.8 data/js/network/ajax_download.js
rex-exploitation-0.1.7 data/js/network/ajax_download.js
rex-exploitation-0.1.6 data/js/network/ajax_download.js
rex-exploitation-0.1.5 data/js/network/ajax_download.js
rex-exploitation-0.1.4 data/js/network/ajax_download.js
rex-exploitation-0.1.3 data/js/network/ajax_download.js
rex-exploitation-0.1.2 data/js/network/ajax_download.js
rex-exploitation-0.1.1 data/js/network/ajax_download.js