Alien-Web-ExtJS-V3
view release on metacpan or search on metacpan
share/adapter/jquery/ext-jquery-adapter-debug.js view on Meta::CPAN
}
headerObj[s] = v.substr(t + 1);
}
});
} catch(e) {}
return {
responseText: xhr.responseText,
responseXML : xhr.responseXML,
argument: cb.argument,
status: xhr.status,
statusText: xhr.statusText,
getResponseHeader : function(header){
return headerObj[header.toLowerCase()];
},
getAllResponseHeaders : function(){
return headerStr;
}
};
};
return {
request : function(method, uri, cb, data, options){
var o = {
type: method,
url: uri,
data: data,
timeout: cb.timeout,
complete: createComplete(cb)
};
if(options){
var hs = options.headers;
if(options.xmlData){
o.data = options.xmlData;
o.processData = false;
o.type = (method ? method : (options.method ? options.method : 'POST'));
if (!hs || !hs['Content-Type']){
o.contentType = 'text/xml';
}
}else if(options.jsonData){
o.data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData;
o.processData = false;
o.type = (method ? method : (options.method ? options.method : 'POST'));
if (!hs || !hs['Content-Type']){
o.contentType = 'application/json';
}
}
if(hs){
o.beforeSend = function(xhr){
for (var h in hs) {
if (hs.hasOwnProperty(h)) {
xhr.setRequestHeader(h, hs[h]);
}
}
};
}
}
jQuery.ajax(o);
},
formRequest : function(form, uri, cb, data, isUpload, sslUri){
jQuery.ajax({
type: Ext.getDom(form).method ||'POST',
url: uri,
data: jQuery(form).serialize()+(data?'&'+data:''),
timeout: cb.timeout,
complete: createComplete(cb)
});
},
isCallInProgress : function(trans){
return false;
},
abort : function(trans){
return false;
},
serializeForm : function(form){
return jQuery(form.dom||form).serialize();
}
};
}();
Ext.lib.Anim = function(){
var createAnim = function(cb, scope){
var animated = true;
return {
stop : function(skipToLast){
// do nothing
},
isAnimated : function(){
return animated;
},
proxyCallback : function(){
animated = false;
Ext.callback(cb, scope);
}
};
};
return {
scroll : function(el, args, duration, easing, cb, scope){
// scroll anim not supported so just scroll immediately
var anim = createAnim(cb, scope);
el = Ext.getDom(el);
if(typeof args.scroll.to[0] == 'number'){
el.scrollLeft = args.scroll.to[0];
}
if(typeof args.scroll.to[1] == 'number'){
el.scrollTop = args.scroll.to[1];
}
anim.proxyCallback();
return anim;
},
motion : function(el, args, duration, easing, cb, scope){
return this.run(el, args, duration, easing, cb, scope);
},
( run in 0.570 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )