Project

General

Profile

Fehler #6

Uploads don't work in IE8

Added by Klaus Eder over 7 years ago. Updated almost 6 years ago.

Status:
Neu
Priority:
Dringend
Category:
Bug
Target version:
-
eXtplorer Version:
2.1.4
Joomla! Version:
Joomla! 3.1

Description

The Upload Window in IE 8 doesn't show.

Looks like this: http://jing.hax.at/2011-03-28_1719.png

Error: http://jing.hax.at/2011-03-28_1708.png

History

#1 Updated by Klaus Eder over 7 years ago

create:function(d,e){return d.render?d:new b[d.xtype||e](d)}

seems to be the part where the error comes from ...

in compatibility view mode it sometimes works ...

#2 Updated by Klaus Eder over 7 years ago

The problem seems to occur somehow because of the external scripts not being loaded
correctly by IE.

If you login, then choose a folder and try to upload it'll show the empty
dialog, if you hit f5 and refresh, and then hit the upload button again it'll work.

Very strange behaviour.

#3 Updated by Klaus Eder over 7 years ago

The problem lies in ux.ondemandload, IE doesn't like it, I have no idea why.

I have replaced the function with:

@Ext.ux.OnDemandLoadByAjax = function(){

loadComponent = function(component, callback){
handleSuccess = function(response, options) {
var type = component.substring(component.lastIndexOf('.'));
var head = document.getElementsByTagName("head")[0];
if (type === ".js") {
var js = document.createElement('script');
js.setAttribute("type", "text/javascript");
js.text = response.responseText;
if (!document.all) {
js.innerHTML = response.responseText;
}
head.appendChild(js);
}
if(typeof callback == "function"){
if(document.all) {
callback();
} else {
callback.defer(50);
}
};
};
handleFailure = function(response, options) {
alert('Dynamic load script: [' + component + '] failed!');
};
Ext.Ajax.request({
url: component,
method: 'GET',
success: handleSuccess,
failure: handleFailure,
disableCaching : false
});
};
return {
load: function(components, callback){
Ext.each(components, function(component){
loadComponent(component, callback);
});
}
};
}();@

which I got here:
http://www.sencha.com/forum/showthread.php?60350-Ext.ux.OnDemandLoad-Dynamic-load-js-file-and-invoke-the-method-in-it

now it works.

still two:

Meldung: 'Ext.get(...)' ist Null oder kein Objekt
Zeile: 58
Zeichen: 6

errors though, which are probably unrelated to this though ...

Also available in: Atom PDF