mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(dom) Loader: add responseType
This commit is contained in:
parent
9266cb2f8a
commit
24d1add52e
2 changed files with 6 additions and 2 deletions
|
|
@ -655,6 +655,9 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
|
||||
xhr.open(lType, pParams.url, true);
|
||||
|
||||
if (p.responseType)
|
||||
xhr.responseType = p.responseType;
|
||||
|
||||
Events.add('readystatechange', function(pEvent) {
|
||||
if (xhr.readyState === 4 /* Complete */) {
|
||||
var lJqXHR = pEvent.target,
|
||||
|
|
|
|||
|
|
@ -32,8 +32,9 @@ var CloudCmd, Util, DOM, $, filepicker;
|
|||
Util.log(FPFile);
|
||||
|
||||
DOM.ajax({
|
||||
url : FPFile.url,
|
||||
success : function(pData){
|
||||
url : FPFile.url,
|
||||
responseType :'arraybuffer',
|
||||
success : function(pData){
|
||||
Util.exec(pCallBack, FPFile.filename, pData);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue