/* Simple AJAX Code-Kit (SACK) v1.6.1 */
/* ©2005 Gregory Wild-Smith */
/* www.twilightuniverse.com */
/* Software licenced under a modified X11 licence,
see documentation or authors website for more details */
function sack(file) {
this.xmlhttp = null;
this.resetData = function() {
this.method = "POST";
this.queryStringSeparator = "?";
this.argumentSeparator = "&";
this.URLString = "";
this.encodeURIString = true;
this.execute = false;
this.element = null;
this.elementObj = null;
this.requestFile = file;
this.vars = new Object();
this.responseStatus = new Array(2);
};
this.resetFunctions = function() {
this.onLoading = function() { };
this.onLoaded = function() { };
this.onInteractive = function() { };
this.onCompletion = function() { };
this.onError = function() { };
this.onFail = function() { };
};
this.reset = function() {
this.resetFunctions();
this.resetData();
};
this.createAJAX = function() {
try {
this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e1) {
try {
this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2) {
this.xmlhttp = null;
}
}
if (! this.xmlhttp) {
if (typeof XMLHttpRequest != "undefined") {
this.xmlhttp = new XMLHttpRequest();
} else {
this.failed = true;
}
}
};
this.setVar = function(name, value){
this.vars[name] = Array(value, false);
};
this.encVar = function(name, value, returnvars) {
if (true == returnvars) {
return Array(encodeURIComponent(name), encodeURIComponent(value));
} else {
this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);
}
}
this.processURLString = function(string, encode) {
encoded = encodeURIComponent(this.argumentSeparator);
regexp = new RegExp(this.argumentSeparator + "|" + encoded);
varArray = string.split(regexp);
for (i = 0; i < varArray.length; i++){
urlVars = varArray[i].split("=");
if (true == encode){
this.encVar(urlVars[0], urlVars[1]);
} else {
this.setVar(urlVars[0], urlVars[1]);
}
}
}
this.createURLString = function(urlstring) {
if (this.encodeURIString && this.URLString.length) {
this.processURLString(this.URLString, true);
}
if (urlstring) {
if (this.URLString.length) {
this.URLString += this.argumentSeparator + urlstring;
} else {
this.URLString = urlstring;
}
}
// prevents caching of URLString
this.setVar("rndval", new Date().getTime());
urlstringtemp = new Array();
for (key in this.vars) {
if (false == this.vars[key][1] && true == this.encodeURIString) {
encoded = this.encVar(key, this.vars[key][0], true);
delete this.vars[key];
this.vars[encoded[0]] = Array(encoded[1], true);
key = encoded[0];
}
urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0];
}
if (urlstring){
this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator);
} else {
this.URLString += urlstringtemp.join(this.argumentSeparator);
}
}
this.runResponse = function() {
eval(this.response);
}
this.runAJAX = function(urlstring) {
if (this.failed) {
this.onFail();
} else {
this.createURLString(urlstring);
if (this.element) {
this.elementObj = document.getElementById(this.element);
}
if (this.xmlhttp) {
var self = this;
if (this.method == "GET") {
totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;
this.xmlhttp.open(this.method, totalurlstring, true);
} else {
this.xmlhttp.open(this.method, this.requestFile, true);
try {
this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
} catch (e) { }
}
this.xmlhttp.onreadystatechange = function() {
switch (self.xmlhttp.readyState) {
case 1:
self.onLoading();
break;
case 2:
self.onLoaded();
break;
case 3:
self.onInteractive();
break;
case 4:
self.response = self.xmlhttp.responseText;
self.responseXML = self.xmlhttp.responseXML;
self.responseStatus[0] = self.xmlhttp.status;
self.responseStatus[1] = self.xmlhttp.statusText;
if (self.execute) {
self.runResponse();
}
if (self.elementObj) {
elemNodeName = self.elementObj.nodeName;
elemNodeName.toLowerCase();
if (elemNodeName == "input"
|| elemNodeName == "select"
|| elemNodeName == "option"
|| elemNodeName == "textarea") {
self.elementObj.value = self.response;
} else {
self.elementObj.innerHTML = self.response;
}
}
if (self.responseStatus[0] == "200") {
self.onCompletion();
} else {
self.onError();
}
self.URLString = "";
break;
}
};
this.xmlhttp.send(this.URLString);
}
}
};
this.reset();
this.createAJAX();
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| codemirror/ | 2026-02-23 19:41 | 1.23 MB | 76129f60960:kunden | dxwrx-rx-r | |
| crop/ | 2026-02-23 19:41 | 19.54 KB | 76129f60960:kunden | dxwrx-rx-r | |
| dist/ | 2026-02-23 19:41 | 21.58 MB | 76129f60960:kunden | dxwrx-rx-r | |
| imgareaselect/ | 2026-02-23 19:41 | 48.39 KB | 76129f60960:kunden | dxwrx-rx-r | |
| jcrop/ | 2026-02-23 19:41 | 24.39 KB | 76129f60960:kunden | dxwrx-rx-r | |
| jquery/ | 2026-02-23 19:41 | 1.24 MB | 76129f60960:kunden | dxwrx-rx-r | |
| mediaelement/ | 2026-02-23 19:41 | 704.4 KB | 76129f60960:kunden | dxwrx-rx-r | |
| plupload/ | 2026-02-23 19:41 | 479.45 KB | 76129f60960:kunden | dxwrx-rx-r | |
| swfupload/ | 2026-02-23 19:41 | 0 B | 76129f60960:kunden | dxwrx-rx-r | |
| thickbox/ | 2026-02-23 19:41 | 30.6 KB | 76129f60960:kunden | dxwrx-rx-r | |
| tinymce/ | 2026-02-23 19:41 | 2.72 MB | 76129f60960:kunden | dxwrx-rx-r | |
| admin-bar.js | 2026-02-23 19:41 | 10.3 KB | 76129f60960:kunden | -xw-x----- | |
| admin-bar.min.js | 2026-02-23 19:41 | 3.41 KB | 76129f60960:kunden | -xw-x----- | |
| api-request.js | 2026-02-23 19:41 | 3.25 KB | 76129f60960:kunden | -xw-x----- | |
| api-request.min.js | 2026-02-23 19:41 | 1023 B | 76129f60960:kunden | -xw-x----- | |
| autosave.js | 2026-02-23 19:41 | 21.95 KB | 76129f60960:kunden | -xw-x----- | |
| autosave.min.js | 2026-02-23 19:41 | 5.67 KB | 76129f60960:kunden | -xw-x----- | |
| backbone.js | 2026-02-23 19:41 | 78.51 KB | 76129f60960:kunden | -xw-x----- | |
| backbone.min.js | 2026-02-23 19:41 | 23.73 KB | 76129f60960:kunden | -xw-x----- | |
| clipboard.js | 2026-02-23 19:41 | 26.18 KB | 76129f60960:kunden | -xw-x----- | |
| clipboard.min.js | 2026-02-23 19:41 | 8.8 KB | 76129f60960:kunden | -xw-x----- | |
| colorpicker.js | 2026-02-23 19:41 | 28.4 KB | 76129f60960:kunden | -xw-x----- | |
| colorpicker.min.js | 2026-02-23 19:41 | 16.11 KB | 76129f60960:kunden | -xw-x----- | |
| comment-reply.js | 2026-02-23 19:41 | 12.22 KB | 76129f60960:kunden | -xw-x----- | |
| comment-reply.min.js | 2026-02-23 19:41 | 2.96 KB | 76129f60960:kunden | -xw-x----- | |
| customize-base.js | 2026-02-23 19:41 | 25.22 KB | 76129f60960:kunden | -xw-x----- | |
| customize-base.min.js | 2026-02-23 19:41 | 7.67 KB | 76129f60960:kunden | -xw-x----- | |
| customize-loader.js | 2026-02-23 19:41 | 7.72 KB | 76129f60960:kunden | -xw-x----- | |
| customize-loader.min.js | 2026-02-23 19:41 | 3.47 KB | 76129f60960:kunden | -xw-x----- | |
| customize-models.js | 2026-02-23 19:41 | 6.66 KB | 76129f60960:kunden | -xw-x----- | |
| customize-models.min.js | 2026-02-23 19:41 | 3.59 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview-nav-menus.js | 2026-02-23 19:41 | 14.67 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview-nav-menus.min.js | 2026-02-23 19:41 | 4.92 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview-widgets.js | 2026-02-23 19:41 | 22.71 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview-widgets.min.js | 2026-02-23 19:41 | 7.64 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview.js | 2026-02-23 19:41 | 27.93 KB | 76129f60960:kunden | -xw-x----- | |
| customize-preview.min.js | 2026-02-23 19:41 | 10.75 KB | 76129f60960:kunden | -xw-x----- | |
| customize-selective-refresh.js | 2026-02-23 19:41 | 32.55 KB | 76129f60960:kunden | -xw-x----- | |
| customize-selective-refresh.min.js | 2026-02-23 19:41 | 10.44 KB | 76129f60960:kunden | -xw-x----- | |
| customize-views.js | 2026-02-23 19:41 | 5.1 KB | 76129f60960:kunden | -xw-x----- | |
| customize-views.min.js | 2026-02-23 19:41 | 2.51 KB | 76129f60960:kunden | -xw-x----- | |
| heartbeat.js | 2026-02-23 19:41 | 23.49 KB | 76129f60960:kunden | -xw-x----- | |
| heartbeat.min.js | 2026-02-23 19:41 | 5.81 KB | 76129f60960:kunden | -xw-x----- | |
| hoverIntent.js | 2026-02-23 19:41 | 7.06 KB | 76129f60960:kunden | -xw-x----- | |
| hoverIntent.min.js | 2026-02-23 19:41 | 1.46 KB | 76129f60960:kunden | -xw-x----- | |
| hoverintent-js.min.js | 2026-02-23 19:41 | 1.68 KB | 76129f60960:kunden | -xw-x----- | |
| imagesloaded.min.js | 2026-02-23 19:41 | 5.39 KB | 76129f60960:kunden | -xw-x----- | |
| json2.js | 2026-02-23 19:41 | 31 B | 76129f60960:kunden | -xw-x----- | |
| json2.min.js | 2026-02-23 19:41 | 35 B | 76129f60960:kunden | -xw-x----- | |
| masonry.min.js | 2026-02-23 19:41 | 23.57 KB | 76129f60960:kunden | -xw-x----- | |
| mce-view.js | 2026-02-23 19:41 | 25.24 KB | 76129f60960:kunden | -xw-x----- | |
| mce-view.min.js | 2026-02-23 19:41 | 9.54 KB | 76129f60960:kunden | -xw-x----- | |
| media-audiovideo.js | 2026-02-23 19:41 | 24.24 KB | 76129f60960:kunden | -xw-x----- | |
| media-audiovideo.min.js | 2026-02-23 19:41 | 11.77 KB | 76129f60960:kunden | -xw-x----- | |
| media-editor.js | 2026-02-23 19:41 | 28.44 KB | 76129f60960:kunden | -xw-x----- | |
| media-editor.min.js | 2026-02-23 19:41 | 10.63 KB | 76129f60960:kunden | -xw-x----- | |
| media-grid.js | 2026-02-23 19:41 | 26.15 KB | 76129f60960:kunden | -xw-x----- | |
| media-grid.min.js | 2026-02-23 19:41 | 12.98 KB | 76129f60960:kunden | -xw-x----- | |
| media-models.js | 2026-02-23 19:41 | 42.58 KB | 76129f60960:kunden | -xw-x----- | |
| media-models.min.js | 2026-02-23 19:41 | 12.97 KB | 76129f60960:kunden | -xw-x----- | |
| media-views.js | 2026-02-23 19:41 | 266.99 KB | 76129f60960:kunden | -xw-x----- | |
| media-views.min.js | 2026-02-23 19:41 | 108.18 KB | 76129f60960:kunden | -xw-x----- | |
| quicktags.js | 2026-02-23 19:41 | 22.07 KB | 76129f60960:kunden | -xw-x----- | |
| quicktags.min.js | 2026-02-23 19:41 | 10.87 KB | 76129f60960:kunden | -xw-x----- | |
| shortcode.js | 2026-02-23 19:41 | 10.51 KB | 76129f60960:kunden | -xw-x----- | |
| shortcode.min.js | 2026-02-23 19:41 | 2.58 KB | 76129f60960:kunden | -xw-x----- | |
| swfobject.js | 2026-02-23 19:41 | 0 B | 76129f60960:kunden | -xw-x----- | |
| swfobject.min.js | 2026-02-23 19:41 | 35 B | 76129f60960:kunden | -xw-x----- | |
| tw-sack.js | 2026-02-23 19:41 | 4.85 KB | 76129f60960:kunden | -xw-x----- | |
| tw-sack.min.js | 2026-02-23 19:41 | 3.21 KB | 76129f60960:kunden | -xw-x----- | |
| twemoji.js | 2026-02-23 19:41 | 36.32 KB | 76129f60960:kunden | -xw-x----- | |
| twemoji.min.js | 2026-02-23 19:41 | 19.39 KB | 76129f60960:kunden | -xw-x----- | |
| underscore.js | 2026-02-23 19:41 | 67.12 KB | 76129f60960:kunden | -xw-x----- | |
| underscore.min.js | 2026-02-23 19:41 | 18.46 KB | 76129f60960:kunden | -xw-x----- | |
| utils.js | 2026-02-23 19:41 | 4.56 KB | 76129f60960:kunden | -xw-x----- | |
| utils.min.js | 2026-02-23 19:41 | 1.82 KB | 76129f60960:kunden | -xw-x----- | |
| wp-ajax-response.js | 2026-02-23 19:41 | 3.81 KB | 76129f60960:kunden | -xw-x----- | |
| wp-ajax-response.min.js | 2026-02-23 19:41 | 2.51 KB | 76129f60960:kunden | -xw-x----- | |
| wp-api.js | 2026-02-23 19:41 | 45.88 KB | 76129f60960:kunden | -xw-x----- | |
| wp-api.min.js | 2026-02-23 19:41 | 14.34 KB | 76129f60960:kunden | -xw-x----- | |
| wp-auth-check.js | 2026-02-23 19:41 | 4.11 KB | 76129f60960:kunden | -xw-x----- | |
| wp-auth-check.min.js | 2026-02-23 19:41 | 1.62 KB | 76129f60960:kunden | -xw-x----- | |
| wp-backbone.js | 2026-02-23 19:41 | 14.88 KB | 76129f60960:kunden | -xw-x----- | |
| wp-backbone.min.js | 2026-02-23 19:41 | 2.97 KB | 76129f60960:kunden | -xw-x----- | |
| wp-custom-header.js | 2026-02-23 19:41 | 10.22 KB | 76129f60960:kunden | -xw-x----- | |
| wp-custom-header.min.js | 2026-02-23 19:41 | 4.34 KB | 76129f60960:kunden | -xw-x----- | |
| wp-embed-template.js | 2026-02-23 19:41 | 6.62 KB | 76129f60960:kunden | -xw-x----- | |
| wp-embed-template.min.js | 2026-02-23 19:41 | 3.1 KB | 76129f60960:kunden | -xw-x----- | |
| wp-embed.js | 2026-02-23 19:41 | 3.14 KB | 76129f60960:kunden | -xw-x----- | |
| wp-embed.min.js | 2026-02-23 19:41 | 1.22 KB | 76129f60960:kunden | -xw-x----- | |
| wp-emoji-loader.js | 2026-02-23 19:41 | 12.89 KB | 76129f60960:kunden | -xw-x----- | |
| wp-emoji-loader.min.js | 2026-02-23 19:41 | 2.82 KB | 76129f60960:kunden | -xw-x----- | |
| wp-emoji-release.min.js | 2026-02-23 19:41 | 22.23 KB | 76129f60960:kunden | -xw-x----- | |
| wp-emoji.js | 2026-02-23 19:41 | 8.59 KB | 76129f60960:kunden | -xw-x----- | |
| wp-emoji.min.js | 2026-02-23 19:41 | 2.79 KB | 76129f60960:kunden | -xw-x----- | |
| wp-list-revisions.js | 2026-02-23 19:41 | 970 B | 76129f60960:kunden | -xw-x----- | |
| wp-list-revisions.min.js | 2026-02-23 19:41 | 597 B | 76129f60960:kunden | -xw-x----- | |
| wp-lists.js | 2026-02-23 19:41 | 24.72 KB | 76129f60960:kunden | -xw-x----- | |
| wp-lists.min.js | 2026-02-23 19:41 | 7.34 KB | 76129f60960:kunden | -xw-x----- | |
| wp-pointer.js | 2026-02-23 19:41 | 9.99 KB | 76129f60960:kunden | -xw-x----- | |
| wp-pointer.min.js | 2026-02-23 19:41 | 3.54 KB | 76129f60960:kunden | -xw-x----- | |
| wp-sanitize.js | 2026-02-23 19:41 | 1.3 KB | 76129f60960:kunden | -xw-x----- | |
| wp-sanitize.min.js | 2026-02-23 19:41 | 444 B | 76129f60960:kunden | -xw-x----- | |
| wp-util.js | 2026-02-23 19:41 | 4.57 KB | 76129f60960:kunden | -xw-x----- | |
| wp-util.min.js | 2026-02-23 19:41 | 1.39 KB | 76129f60960:kunden | -xw-x----- | |
| wpdialog.js | 2026-02-23 19:41 | 569 B | 76129f60960:kunden | -xw-x----- | |
| wpdialog.min.js | 2026-02-23 19:41 | 281 B | 76129f60960:kunden | -xw-x----- | |
| wplink.js | 2026-02-23 19:41 | 20.74 KB | 76129f60960:kunden | -xw-x----- | |
| wplink.min.js | 2026-02-23 19:41 | 11.05 KB | 76129f60960:kunden | -xw-x----- | |
| zxcvbn-async.js | 2026-02-23 19:41 | 821 B | 76129f60960:kunden | -xw-x----- | |
| zxcvbn-async.min.js | 2026-02-23 19:41 | 351 B | 76129f60960:kunden | -xw-x----- | |
| zxcvbn.min.js | 2026-02-23 19:41 | 802.97 KB | 76129f60960:kunden | -xw-x----- | |