Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #24481
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Opacity Problem for IE8 and lower |
| Date | 2014-05-30 17:27 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1469414.X9OfJ2x7EV@PointedEars.de> (permalink) |
| References | <buptfvF1um5U1@mid.individual.net> <h7ifo9hqqbubrvp610p6caare6tf3l6aea@4ax.com> <burglvFbuv1U1@mid.individual.net> |
Mel Smith wrote:
> Ed said:
>>> document.getElementById("iMyDivId").style.filter =
>>>alpha(opacity=100) ;
>>
>> = 'alpha(opacity=100)';
>
> Hi Ed:
> I hadn't ever seen the "alpha(" construct before and ouldn't find
> examples of its use in JS, and I had read thru Flanagan's book, and
> googled, but didn't realize I could stringify this filter argument.
You should either read Flanagan’s book again or (which I recommend) dump it
as it cannot be that good a book on the subject if it did not tell you that
there has to be an “alpha” function/method in order for that assignment to
work "unquoted". (As most certainly there is not, a ReferenceError
exception is thrown.¹)
That the book is bad has been demonstrated before; however, you have
demonstrated before to be a slow learner as well. So the reason for this
oversight is unclear.
________
¹ An interesting aspect of this problem is that if there were an “alpha”
function/method and there was an “opacity” variable/property or the
code not strict mode code, an “opacity” property would be assigned the
value 100, alpha(100) would be called, and the result of the call
assigned to the “filter” property (which may reject it by setter).
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Opacity Problem for IE8 and lower "Mel Smith" <syntel@cox.net> - 2014-05-29 17:17 -0600
Re: Opacity Problem for IE8 and lower Ed Jay <edMbj@aes-intl.com> - 2014-05-29 16:56 -0700
Re: Opacity Problem for IE8 and lower "Mel Smith" <syntel@cox.net> - 2014-05-30 07:50 -0600
Re: Opacity Problem for IE8 and lower Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 17:27 +0200
Re: Opacity Problem for IE8 and lower Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 17:56 +0200
Re: Opacity Problem for IE8 and lower "Mel Smith" <syntel@cox.net> - 2014-05-30 10:27 -0600
Re: Opacity Problem for IE8 and lower Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 22:37 +0200
filter (was: Opacity Problem for IE8 and lower) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-01 14:59 +0200
Re: Opacity Problem for IE8 and lower Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 14:32 +0200
Re: Opacity Problem for IE8 and lower Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2014-06-01 13:27 -0300
csiph-web