- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
moo.ajax.js
资源名称:xssshell.rar [点击查看]
上传用户:wangting
上传日期:2020-01-24
资源大小:2226k
文件大小:2k
源码类别:
破解
开发平台:
ASP/ASPX
- //based on prototype's ajax class
- //to be used with prototype.lite, moofx.mad4milk.net.
- ajax = Class.create();
- ajax.prototype = {
- initialize: function(url, options){
- this.transport = this.getTransport();
- this.postBody = options.postBody || '';
- this.method = options.method || 'post';
- this.onComplete = options.onComplete || null;
- this.update = $(options.update) || null;
- this.updateEscape = $(options.updateEscape) || null;
- this.request(url);
- },
- request: function(url){
- this.transport.open(this.method, url, true);
- this.transport.onreadystatechange = this.onStateChange.bind(this);
- if (this.method == 'post') {
- this.transport.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
- if (this.transport.overrideMimeType) this.transport.setRequestHeader('Connection', 'close');
- }
- this.transport.send(this.postBody);
- },
- onStateChange: function(){
- if (this.transport.readyState == 4 && this.transport.status == 200) {
- if (this.onComplete)
- setTimeout(function(){this.onComplete(this.transport);}.bind(this), 10);
- if (this.update)
- setTimeout(function(){this.update.innerHTML = this.transport.responseText;}.bind(this), 10);
- if (this.updateEscape)
- setTimeout(function(){this.updateEscape.innerHTML = unescape(this.transport.responseText);}.bind(this), 10);
- this.transport.onreadystatechange = function(){};
- }
- },
- getTransport: function() {
- if (window.ActiveXObject) return new ActiveXObject('Microsoft.XMLHTTP');
- else if (window.XMLHttpRequest) return new XMLHttpRequest();
- else return false;
- }
- };