var rsp_ajax = {}; rsp_ajax.x = function () { if (typeof XMLHttpRequest !== 'undefined') { return new XMLHttpRequest(); } var versions = [ "MSXML2.XmlHttp.6.0", "MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp" ]; var xhr; for (var i = 0; i < versions.length; i++) { try { xhr = new ActiveXObject(versions[i]); break; } catch (e) { } } return xhr; }; rsp_ajax.send = function (url, callback, method, data, async) { if (async === undefined) { async = true; } var x = rsp_ajax.x(); x.open(method, url, async); x.onreadystatechange = function () { if (x.readyState == 4) { callback(x.responseText) } }; if (method == 'POST') { x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); } x.send(data) }; rsp_ajax.get = function (url, data, callback, async) { var query = []; for (var key in data) { query.push(encodeURIComponent(key) + '=' + encodeURIComponent(data[key])); } rsp_ajax.send(url + (query.length ? '?' + query.join('&') : ''), callback, 'GET', null, async) };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
img | Folder | 0755 |
|
|
ajax.js | File | 1.26 KB | 0644 |
|
ajax.min.js | File | 905 B | 0644 |
|
index.php | File | 32 B | 0644 |
|
upgrade-to-pro.css | File | 6.27 KB | 0644 |
|
upgrade-to-pro.css.map | File | 2.54 KB | 0644 |
|
upgrade-to-pro.js | File | 3.99 KB | 0644 |
|
upgrade-to-pro.less | File | 2.85 KB | 0644 |
|
upgrade-to-pro.min.css | File | 5.45 KB | 0644 |
|
upgrade-to-pro.min.js | File | 3.38 KB | 0644 |
|
upgrade-to-pro.php | File | 25.85 KB | 0644 |
|