[Dojo-interest] FileUploader widget in IE8
Mike Wilcox
mwilcox at sitepen.com
Thu Jul 23 08:38:07 EDT 2009
Ho Jose,
Sorry I missed your last message.
You were right, this is an IE bug. Not sure how it got through the
tests. IE isn't liking lineHeight="auto", it prefers inherit. I'll
submit the fix to the trunk. To get you up and running you can use a
patch in your code. Your script would look like this:
<script type="text/javascript">
dojo.require("dojo.html");
dojo.require("dojox.form.FileUploader");
dojox.form.FileUploader.prototype._styleContent = function(){
var o = this.fhtml.nr;
var lh = dojo.isIE ? "inherit" : "auto";
dojo.style(this.insideNode, {
width:o.w+"px",
height:o.va == "middle"?o.h+"px":"auto",
lineHeight:o.va == "middle"?o.h+"px":lh,
textAlign:o.ta,
paddingTop:o.p[0]+"px",
paddingRight:o.p[1]+"px",
paddingBottom:o.p[2]+"px",
paddingLeft:o.p[3]+"px"
});
}
</script>
Mike Wilcox
mwilcox at sitepen.com
http://www.sitepen.com
work: 650.968.8787 x218
cell: 214.697.4872
On Jul 23, 2009, at 2:16 AM, Jose Noheda wrote:
> I've created issue http://bugs.dojotoolkit.org/ticket/9600 so it
> doesn't get lost.
>
> Regards
>
> On Mon, Jul 20, 2009 at 5:56 PM, Jose Noheda <jose.noheda at gmail.com>
> wrote:
> Hi Mike,
>
> This is the most trimmed version I could achieve that resembles my
> configuration and highlights the error in IE8. Let me know if you
> need more info.
>
> Regards
>
>
> On Sat, Jul 18, 2009 at 11:04 AM, Jose Noheda
> <jose.noheda at gmail.com> wrote:
> I'm using 1.3.2 final from Google CDN. I'm going to try to post a
> sample page here that showcases the error.
>
> Regards
>
>
> On Fri, Jul 17, 2009 at 7:00 PM, Mike Wilcox <mwilcox at sitepen.com>
> wrote:
> Yes I've verified that it works in IE8, but you should be sure that
> you are using dojo 1.3rc2 (the very latest). This has some new
> concepts which fixes many of the bugs in the previous version.
>
>
> Mike Wilcox
> mwilcox at sitepen.com
> http://www.sitepen.com
> work: 650.968.8787 x218
> cell: 214.697.4872
>
> On Jul 17, 2009, at 10:26 AM, Jose Noheda wrote:
>
> > Hi all,
> >
> > I'm really having trouble getting the FileUploader widget in 1.3.2
> > to work under IE8. It's working fine in FF3.5 & Chrome 2.0 but in IE
> > it complains always in the same line
> >
> > dojo.js
> > if(args==3){return op?d._setOpacity(n,_266):n.style[_265]=_266;}
> > Invalid Argument
> >
> > I've isolated the error to this line in my code:
> >
> > return new dojox.form.FileUploader({
> > id: 'something',
> > force: "html",
> > selectMultipleFiles: false
> > }, container.firstChild);
> >
> > Anyone can confirm the widget works under IE?
> >
> > Regards
> > _______________________________________________
> > FAQ: http://dojotoolkit.org/support/faq
> > Book: http://dojotoolkit.org/docs/book
> > Forums: http://dojotoolkit.org/forum
> > Dojo-interest at mail.dojotoolkit.org
> > http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20090723/9701b2e7/attachment.htm
More information about the Dojo-interest
mailing list