The problem isn't the progress bar actually, it's the grid (lines 284/285).. I can confirm that I don't have any custom CSS definitions affecting the result.
Printable View
The problem isn't the progress bar actually, it's the grid (lines 284/285).. I can confirm that I don't have any custom CSS definitions affecting the result.
I would add that in IE7, the act of adding a file to the upload queue is also causing an error in ext-all-debug.js (1.1 stable) at line 2402:
That's the setStyle member of El.prototype - I'll try to help you figure out why.Code:setStyle : function(prop, value){
if(typeof prop == "string"){
var camel;
if(!(camel = propCache[prop])){
camel = propCache[prop] = prop.replace(camelRe, camelFn);
}
if(camel == 'opacity') {
this.setOpacity(value);
}else{
this.dom.style[camel] = value;
}
}else{
for(var style in prop){
if(typeof prop[style] != "function"){
this.setStyle(style, prop[style]);
}
}
}
return this;
},
The problem occurs in Ext.ux.ProgressBar.js at line 94:
Code:refresh : function()
{
if (!this.disabled) {
if (this.text_el) {
this.text_el.dom.innerHTML = this.text;
}
if (this.line_el) {
this.line_el.setStyle('width', this.getPercentValue() + '%');
}
}
Fixed the scroll bars issue, please update the package.
Fixed the scroll bars issue! A+ Just that pesky IE issue remaining. I'll gladly help you track down a fix if you need.
+ rep! Thanks.
Hi, the extension is GREAT !! Just what i'm looking for. Could you put the php files that use in the demo to understand all the process please?
Thanks.
There is nothing special in the php files used in the demo. The upload-dialog.php actually has no php code inside, it's just plain html. The upload-dialog-request.php simple sends json-encoded struct, the uploaded files isn't saved anywhere ;)
In the real life use you have to anylize the $_FILES superglobal php array. The $_FILES['file'] contains any data you'll need to copy uploaded file somewhere in your server ;)Code:<?php
$response = array(
'success' => true
);
echo json_encode($response);
?>
On success just send json-encoded response as one showed above, on fail send something like:
Code:<?php
...
$response = array(
'success' => false,
'error' => 'Description of the error occured.'
);
echo json_encode($response);
...
?>
What a great extension! Much respect for you all ! =D>