Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15272 > unrolled thread

Stupid Question

Started byRobert Baer <robertbaer@localnet.com>
First post2012-08-04 21:32 -0700
Last post2012-08-14 16:43 -0700
Articles 3 on this page of 23 — 7 participants

Back to article view | Back to comp.lang.javascript


Contents

  Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-04 21:32 -0700
    off topic, was: Re: Stupid Question "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-05 06:33 +0000
      Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-05 21:31 -0700
        Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-05 21:56 -0700
          Re: off topic, was: Re: Stupid Question Gregor Kofler <usenet@gregorkofler.com> - 2012-08-06 09:21 +0200
            Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-06 01:44 -0700
              Re: off topic, was: Re: Stupid Question Gregor Kofler <usenet@gregorkofler.com> - 2012-08-06 13:29 +0200
                Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-06 11:01 -0700
                  Re: off topic, was: Re: Stupid Question Gregor Kofler <usenet@gregorkofler.com> - 2012-08-06 21:03 +0200
                    Re: off topic, was: Re: Stupid Question Tim Streater <timstreater@greenbee.net> - 2012-08-06 20:12 +0100
                      Re: off topic, was: Re: Stupid Question Gregor Kofler <usenet@gregorkofler.com> - 2012-08-06 21:18 +0200
                      Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-07 00:14 -0700
                        Re: off topic, was: Re: Stupid Question Tim Streater <timstreater@greenbee.net> - 2012-08-07 09:28 +0100
                          Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-07 15:17 -0700
                    Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-07 00:11 -0700
                      Re: off topic, was: Re: Stupid Question Gregor Kofler <usenet@gregorkofler.com> - 2012-08-07 10:06 +0200
                        Re: off topic, was: Re: Stupid Question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-07 13:20 +0200
                    Re: off topic, was: Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-11 15:38 -0700
        Re: off topic, was: Re: Stupid Question SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-09 15:56 +0200
    Re: Stupid Question SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-09 15:51 +0200
      Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-11 15:53 -0700
        Re: Stupid Question Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-12 00:34 +0000
          Re: Stupid Question Robert Baer <robertbaer@localnet.com> - 2012-08-14 16:43 -0700

Page 2 of 2 — ← Prev page 1 [2]


#15312

FromRobert Baer <robertbaer@localnet.com>
Date2012-08-11 15:53 -0700
Message-ID<PYmdnaJ2T_f1f7vNnZ2dnUVZ_qqdnZ2d@posted.localnet>
In reply to#15297
SAM wrote:
> Le 05/08/12 06:32, Robert Baer a écrit :
>> Out of context code snippet first:
>> ** QUOTE **
>> <!--[if lt IE 11]>
>> <img src="images/SLIDER1.JPG" alt="Codatron&trade;">
>> <![else]
>> <img src="images/Codatron.png" alt="Codatron&trade;">
>> <![endif]-->
>
>> Q:
>> Why does that added code alter how the browser renders things (by
>> hiding the top image and related text)?
>
>
> How --> see
> google : conditional comment
> and : <http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx>
>
> Why --> maybe because IE of version before the 11th can't read correctly
> the *.png ?
>
> More --> and what about navigators that aren't IE ?
>
   Just to be clear on that [if lt IE 11] code snippet, the top part 
gets "executed" if true (meaning if ANY version of IE is the rendering 
browser), the bottom part gets "executed" if false (meaning ALL other 
browsers).
   I chose the number 11 because then when IE10 comes out i would need 
to make no changes.

[toc] | [prev] | [next] | [standalone]


#15317

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2012-08-12 00:34 +0000
Message-ID<k06tmc$vbe$2@dont-email.me>
In reply to#15312
On Sat, 11 Aug 2012 15:53:26 -0700, Robert Baer wrote:

>>> <!--[if lt IE 11]>
>>> <img src="images/SLIDER1.JPG" alt="Codatron&trade;">
>>> <![else]
>>> <img src="images/Codatron.png" alt="Codatron&trade;"> <![endif]-->

>    Just to be clear on that [if lt IE 11] code snippet, the top part
> gets "executed" if true (meaning if ANY version of IE is the rendering
> browser), the bottom part gets "executed" if false (meaning ALL other
> browsers).

Not strictly true.

Non IE browsers have no reason to pay any attention whatsoever to any of 
the html comment between <!-- and -->

Firefox, for example, just sees a single html comment.

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#15361

FromRobert Baer <robertbaer@localnet.com>
Date2012-08-14 16:43 -0700
Message-ID<26idnTKw1PBff7fNnZ2dnUVZ_o-dnZ2d@posted.localnet>
In reply to#15317
Denis McMahon wrote:
> On Sat, 11 Aug 2012 15:53:26 -0700, Robert Baer wrote:
>
>>>> <!--[if lt IE 11]>
>>>> <img src="images/SLIDER1.JPG" alt="Codatron&trade;">
>>>> <![else]
>>>> <img src="images/Codatron.png" alt="Codatron&trade;">  <![endif]-->
>
>>     Just to be clear on that [if lt IE 11] code snippet, the top part
>> gets "executed" if true (meaning if ANY version of IE is the rendering
>> browser), the bottom part gets "executed" if false (meaning ALL other
>> browsers).
>
> Not strictly true.
>
> Non IE browsers have no reason to pay any attention whatsoever to any of
> the html comment between<!-- and -->
>
> Firefox, for example, just sees a single html comment.
>
> Rgds
>
> Denis McMahon
   Maybe, perhaps; the net result is what counts and that conforms to my 
observations.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.javascript


csiph-web