IE6 won't hide dynamically created span elements

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nicholas Couch

    #16
    Re: IE6 won't hide dynamically created span elements

    I'd like to explore this a little further, and get a little more
    specific. The Goodman book to which I referred earlier is primarily a
    reference, covering DHTML, CSS, DOM, etc. It is not a tutorial per se.
    Would I be wrong to trust it as a reference? Is the information
    presented therein likely to be inaccurate, or as Richard suggested,
    out of date? Can anyone give me an example of an instance where the
    book is wrong?

    I'm quite serious about this. As I've already noted, I've not done a
    whole lot of Javascript programming previously (I've been programming
    in other languages for well over 20 years), but it looks like I may
    well be doing a lot of it in the foreseeable future. I don't want to
    get off on the wrong foot by relying on a lousy reference book.

    BC




    "Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message news:<opsehqdvf xx13kvk@atlanti s>...[color=blue]
    >
    > [snip]
    >
    > It's not that Javascript books are out-of-date, but that they're simply
    > bad in the first place.
    >
    > [snip]
    >[/color]

    Comment

    • Robert

      #17
      Re: IE6 won't hide dynamically created span elements

      In article <fe440ba9.04091 80905.47d3cc8@p osting.google.c om>,
      blake@thecouche s.net (Nicholas Couch) wrote:
      [color=blue]
      > I'd like to explore this a little further, and get a little more
      > specific. The Goodman book to which I referred earlier is primarily a
      > reference, covering DHTML, CSS, DOM, etc. It is not a tutorial per se.[/color]

      Are you referring to:
      JavaScript Bible, Fifth Edition
      by Danny Goodman, Michael Morrison

      No book is perfect. I have read earlier versions of this book and I
      recall that it was comprehensive. I think the major complaint of many
      JavaScript books is that they use browser detection instead of feature
      detections. Just skip the stuff on browser detection and use feature
      detection instead. This would be the third book on Javascript that I'd
      buy.

      Or I see it could be JavaScript & DHTML Cookbook Solutions and Example
      for Web Programmers By Danny Goodman.

      Or maybe it is this book: Dynamic HTML: The Definitive Reference, 2nd
      Edition A Comprehensive Resource for HTML, CSS, DOM & JavaScript. This
      contains a lot of reference information. I thought about buying it, but
      if I recall right, it has a very broad coverage and contains a little
      less coverage on the core javascript language than the book below.

      The faq of this group recommends: JavaScript: The Definitive Guide by
      David Flanagan. I'd recommend adding it to your book collection.

      Robert

      Comment

      • Nicholas Couch

        #18
        Re: IE6 won't hide dynamically created span elements

        Robert <rccharles@my-deja.com> wrote in message news:<rccharles-5C1353.00022519 092004@news2.we st.earthlink.ne t>...[color=blue]
        >
        > [snip]
        >
        > Or maybe it is this book: Dynamic HTML: The Definitive Reference, 2nd
        > Edition A Comprehensive Resource for HTML, CSS, DOM & JavaScript. This
        > contains a lot of reference information. I thought about buying it, but
        > if I recall right, it has a very broad coverage and contains a little
        > less coverage on the core javascript language than the book below.
        >
        > [snip]
        >[/color]

        Yes, that's the one I refer to in message 12 in this thread. I bought
        it precisely because I wanted a resource with broad coverage, and
        because I read several strong recommendations for it, on this
        newsgroup and elsewhere. Plus I already have a couple of books devoted
        primarily to javascript, including the O'Reilly/Flanagan book.

        The important thing, from my point of view, is to know whether or not
        I can rely
        on these or any other books as I try to increase my level of expertise
        in javascript programming. When regular and authoritative participants
        in this newsgroup tell me, essentially, that so-and-so's books are no
        good and that no Javascript books can be trusted, I'd like to know
        with specificity why that is so. It seems to me that when there's so
        much importance placed on conforming to a certain posting orthodoxy in
        this group, there ought to be just as much emphasis placed on
        substantiating one's opinion of the work of others in the field - in
        the interest of the common good, of course....

        BC

        Comment

        • Richard Cornford

          #19
          Re: IE6 won't hide dynamically created span elements

          Nicholas Couch wrote:[color=blue]
          > Robert wrote:[color=green]
          >> Or maybe it is this book: Dynamic HTML: The Definitive
          >> Reference, 2nd Edition ...[/color][/color]
          <snip>[color=blue]
          > Yes, that's the one I refer to in message 12 in this thread.
          > I bought it precisely because I wanted a resource with
          > broad coverage, and because I read several strong
          > recommendations for it, on this newsgroup and elsewhere.[/color]

          I have never seen a recommendation of any Danny Goodman book posted to
          this newsgroup in the last couple of years, strong or otherwise. At
          least by anyone worth paying any attention to, which is important as the
          only limitation on posting a recommendation of anything is having access
          to a new server or the internet (so not really a qualification in
          javascript in itself).
          [color=blue]
          > Plus I already have a couple of books devoted
          > primarily to javascript, including the O'Reilly/Flanagan book.
          >
          > The important thing, from my point of view, is to know
          > whether or not I can rely on these or any other books
          > as I try to increase my level of expertise in javascript
          > programming.[/color]

          Reference material published in books only needs to reproduce (often
          re-worded) the original sources (ECMA, W3C, Microsoft, Netscape, ect.)
          accurately in order to be useful. They can tell you what is out there,
          and what you can expect it to do where it is implemented. As will the
          original sources.

          Any book written in 2002 is going to have problems saying useful things
          about browser implementations . At the start of 2002 Netscape 7 and Opera
          7 did not exist, Mozilla has changed considerably over the intervening
          years (along with all the Gecko browsers) and books rarely even mention
          browsers such as IceBrowser (called IceStorm at the time) and NetFront.
          Unsurprisingly as most books take the "both browsers" attitude prevalent
          around the turn of the century, possibly making concessions for extreme
          changes made between Netscape 4 and 6.

          That is in fact the main problem with Danny Goodman's code. He tends to
          take the attitude that the browser executing his code will be one of a
          known set of browsers and never considers the consequences of a script
          encountering a browser outside of that set (that and applying some
          really clumsy techniques to dealing with even that limited set of
          browsers).

          In reality reference material for the object models is not a major issue
          in browser scripting, though it would be nice if some of the minor
          browsers published more specifics about their implementations ). The real
          problem is in script design; designing for the consequences of failure
          of a browser to support a particular feature. It is that aspect of
          scripting that takes the effort to learn, and also the aspect most
          poorly addressed in existing javascript books.
          [color=blue]
          > When regular and authoritative participants in this newsgroup
          > tell me, essentially, that so-and-so's books are no good and
          > that no Javascript books can be trusted, I'd like to know
          > with specificity why that is so. It seems to me that when
          > there's so much importance placed on conforming to a certain
          > posting orthodoxy in this group, there ought to be just as
          > much emphasis placed on substantiating one's opinion of the
          > work of others in the field - in the interest of the common
          > good, of course....[/color]

          The section of the FAQ on javascript books says just about all that
          needs saying on the subject. None of the regulars on this group are
          willing to endorse any book other than David Flanagan's and even that
          was following a debate on the subject and the expression of misgivings.

          Of the last two newly published javascript books I have looked at, one
          was written apparently without an appreciation that javascript is quite
          unlike Java, and so was filled with clear factual errors (that would
          mostly have been true of Java), and the second (featuring "advanced" in
          the title) expounded methods so poor that their use would be somewhere
          between stupid and disastrous.

          Richard.


          Comment

          • Nicholas Couch

            #20
            Re: IE6 won't hide dynamically created span elements

            On Sun, 19 Sep 2004 14:25:27 -0600, Richard Cornford wrote:[color=blue]
            > I have never seen a recommendation of any Danny Goodman book posted to
            > this newsgroup in the last couple of years, strong or otherwise. At
            > least by anyone worth paying any attention to, which is important as[/color]

            Well, that's part of the problem, isn't it? How is one to judge, unless
            one regularly spends time reading the group? I spent a few hours the other
            day, before I made my original post, searching via Google Groups, looking
            for posts that might give me a clue as to a solution to the problem I was
            experiencing. I saw many posts by yourself, Andrew Thompson, Michael
            Winter, Martin Honnen, Randy Webb, Fred Oz, Lasse Reichstein Nielsen,
            Thomas 'PointedEars' Lahn, Grant Wagner, and a host of others. During that
            brief period I became aware that there are certain regular participants in
            the group who are considered purveyors of bad advice, but I wasn't looking
            for any depth of understanding of your particular subculture on the
            internet. I was looking for a solution to a very specific programming
            problem. In the process I ran across at least two or three recommendations
            for Goodman's DHTML book, which I considered valuable in the absence of
            any recommendations to the contrary. I don't recall how old those posts
            were, and they may not even have been from this group, now that I think
            about it, but anything is better than nothing, usually.

            [color=blue]
            > The section of the FAQ on javascript books says just about all that
            > needs saying on the subject. None of the regulars on this group are
            > willing to endorse any book other than David Flanagan's and even that
            > was following a debate on the subject and the expression of misgivings.[/color]

            I have to disagree, with that "just about all that needs saying" bit. It
            may be enough for the regular participants here, because you know each
            other's judgement, presumably, but as an outsider there are lots of
            alternative conclusions I could draw from the fact that there's only one
            book in existence you can all agree on, even grudgingly, as valuable.
            Nothing personal, Richard, but there are a lot of cranks on usenet.

            At any rate, I appreciate your taking the time to respond here in more
            detail, and I appreciate the efforts of everyone else who posted on this
            thread. I certainly know a whole lot more than I did before I started
            this, and that's what it's all about.

            BC

            Comment

            • Dr John Stockton

              #21
              Re: IE6 won't hide dynamically created span elements

              JRS: In article <fe440ba9.04091 90901.48550d44@ posting.google. com>,
              dated Sun, 19 Sep 2004 10:01:49, seen in news:comp.lang. javascript,
              Nicholas Couch <blake@thecouch es.net> posted :[color=blue]
              >
              >Yes, that's the one I refer to in message 12 in this thread.[/color]

              The articles in a thread are not globally numbered.

              They may arrive in different servers in different orders; they are
              differently displayed by different newsreaders; readers need show no
              number. So it is not sound to refer to them by a sequence number.

              The Message-ID, in the header, provides a reference which should be
              perpetually unique over all newsgroups; "My message, Date: 17 Sep 2004
              20:41:13 GMT", is good enough for the present purpose.

              --
              © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
              Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
              Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
              No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

              Comment

              • Andrew Thompson

                #22
                Re: IE6 won't hide dynamically created span elements

                On Mon, 20 Sep 2004 11:45:43 +0100, Dr John Stockton wrote:

                (Usenet posts)[color=blue]
                > They may arrive in different servers in different orders; they are
                > differently displayed by different newsreaders; readers need show no
                > number. So it is not sound to refer to them by a sequence number.[/color]

                As an aside, I often provide links to the Google archives
                that take the form http://google.com/groups?th=2123446#9
                (a totally false URL), in preferecne to using the single,
                much longer 'selm; parameter.

                While shorter, my preferred form is but quite unreliable
                over the long term. For example if another poster makes a
                reply to an earlier post in the thread, as the original
                URL becomes..


                If I ever 'get round to' my Google link shortenner,
                it will provide the selm parameter exclusively.

                --
                Andrew Thompson
                http://www.PhySci.org/codes/ Web & IT Help
                http://www.PhySci.org/ Open-source software suite
                http://www.1point1C.org/ Science & Technology
                http://www.lensescapes.com/ Images that escape the mundane

                Comment

                • Dr John Stockton

                  #23
                  Re: IE6 won't hide dynamically created span elements

                  JRS: In article <15moq0nnn5gtz. 2ktg5qqsazqa.dl g@40tude.net>, dated Tue,
                  21 Sep 2004 08:30:35, seen in news:comp.lang. javascript, Andrew Thompson
                  <SeeMySites@www .invalid> posted :[color=blue]
                  >On Mon, 20 Sep 2004 11:45:43 +0100, Dr John Stockton wrote:
                  >
                  >(Usenet posts)[color=green]
                  >> They may arrive in different servers in different orders; they are
                  >> differently displayed by different newsreaders; readers need show no
                  >> number. So it is not sound to refer to them by a sequence number.[/color]
                  >
                  >As an aside, I often provide links to the Google archives
                  >that take the form http://google.com/groups?th=2123446#9
                  >(a totally false URL), in preferecne to using the single,
                  >much longer 'selm; parameter.[/color]


                  But those with off-line news readers do not have immediate access to web
                  services; but, if it is a good newsreader, it will have retained earlier
                  articles in the thread, and one can find them given date & time or
                  Message-ID.

                  --
                  © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
                  Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
                  Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
                  No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

                  Comment

                  • Andrew Thompson

                    #24
                    Re: IE6 won't hide dynamically created span elements

                    On Tue, 21 Sep 2004 21:32:30 +0100, Dr John Stockton wrote:[color=blue]
                    > JRS: In article <15moq0nnn5gtz. 2ktg5qqsazqa.dl g@40tude.net>, dated Tue,
                    > 21 Sep 2004 08:30:35, seen in news:comp.lang. javascript, Andrew Thompson
                    > <SeeMySites@www .invalid> posted :[color=green]
                    >>On Mon, 20 Sep 2004 11:45:43 +0100, Dr John Stockton wrote:
                    >>
                    >>(Usenet posts)[color=darkred]
                    >>> They may arrive in different servers in different orders; they are
                    >>> differently displayed by different newsreaders; readers need show no
                    >>> number. So it is not sound to refer to them by a sequence number.[/color]
                    >>
                    >>As an aside, I often provide links to the Google archives
                    >>that take the form http://google.com/groups?th=2123446#9
                    >>(a totally false URL), in preferecne to using the single,
                    >>much longer 'selm; parameter.[/color]
                    >
                    > But those with off-line news readers do not have immediate access to web
                    > services; but, if it is a good newsreader, it will have retained earlier
                    > articles in the thread, and one can find them given date & time or
                    > Message-ID.[/color]

                    Excuse me for being dense (shrugs, or not, as you wish)
                    but is the 'Message-ID' equivalent to the 'selm' parameter
                    as used by Google. (I suspect that is what it is, but am
                    unsure)

                    --
                    Andrew Thompson
                    http://www.PhySci.org/codes/ Web & IT Help
                    http://www.PhySci.org/ Open-source software suite
                    http://www.1point1C.org/ Science & Technology
                    http://www.lensescapes.com/ Images that escape the mundane

                    Comment

                    • Michael Winter

                      #25
                      Re: IE6 won't hide dynamically created span elements

                      On Wed, 22 Sep 2004 07:20:06 GMT, Andrew Thompson <SeeMySites@www .invalid>
                      wrote:

                      [snip]
                      [color=blue]
                      > Excuse me for being dense (shrugs, or not, as you wish)
                      > but is the 'Message-ID' equivalent to the 'selm' parameter
                      > as used by Google. (I suspect that is what it is, but am
                      > unsure)[/color]

                      Yes, it is.

                      My last post in this thread (to Nicholas Couch, Friday 21:37 GMT) as the
                      following Google URL:

                      <URL:http://groups.google.c om/groups?hl=en&lr =&ie=UTF-8&safe=off&selm =opsehqdvfxx13k vk%40atlantis>

                      If you check the headers of that post, you'll see:

                      Message-ID: <opsehqdvfxx13k vk@atlantis>

                      URL-encoded, it's the same as the selm parameter (though it is missing the
                      angle brackets).

                      Mike

                      --
                      Michael Winter
                      Replace ".invalid" with ".uk" to reply by e-mail.

                      Comment

                      • Andrew Thompson

                        #26
                        Re: IE6 won't hide dynamically created span elements

                        On Wed, 22 Sep 2004 08:04:16 GMT, Michael Winter wrote:[color=blue]
                        > On Wed, 22 Sep 2004 07:20:06 GMT, Andrew Thompson wrote:
                        >
                        > [snip][color=green]
                        >> .. is the 'Message-ID' equivalent to the 'selm' parameter
                        >> as used by Google. ..[/color][/color]
                        ...[color=blue]
                        > Yes, it is.[/color]

                        I will have to break my bad habits then, and start using it.

                        It seems much more useful than quoting Google specific
                        parameters, even though (grumbles) it leads to longer
                        links. And as already pointed out, it can be used in
                        newsreaders themselves.

                        Please feel free to correct/berate me publicly if I
                        forget (or get lazy).

                        --
                        Andrew Thompson
                        http://www.PhySci.org/codes/ Web & IT Help
                        http://www.PhySci.org/ Open-source software suite
                        http://www.1point1C.org/ Science & Technology
                        http://www.lensescapes.com/ Images that escape the mundane

                        Comment

                        • Andrew Thompson

                          #27
                          Re: IE6 won't hide dynamically created span elements

                          On Wed, 22 Sep 2004 08:04:16 GMT, Michael Winter wrote:
                          [color=blue]
                          > On Wed, 22 Sep 2004 07:20:06 GMT, Andrew Thompson wrote:[/color]
                          [color=blue]
                          > <URL:http://groups.google.c om/groups?hl=en&lr =&ie=UTF-8&safe=off&selm =opsehqdvfxx13k vk%40atlantis>[/color]

                          Oh, and ..just to be really irritating, I'll point out
                          that URL might be better written..

                          <http://google.com/groups?selm=ops ehqdvfxx13kvk%4 0atlantis>

                          [ How's *that* for some motivation to keep an
                          eye out for my mislinks*. ;-) ]

                          * 'Mistaken links/ missing links / links that might in any
                          way be improved or shortened' - a term I made up on the spot.

                          --
                          Andrew Thompson
                          http://www.PhySci.org/codes/ Web & IT Help
                          http://www.PhySci.org/ Open-source software suite
                          http://www.1point1C.org/ Science & Technology
                          http://www.lensescapes.com/ Images that escape the mundane

                          Comment

                          • Thomas 'PointedEars' Lahn

                            #28
                            Re: IE6 won't hide dynamically created span elements

                            Nicholas Couch wrote:
                            [color=blue]
                            > On Sun, 19 Sep 2004 14:25:27 -0600, Richard Cornford wrote:[color=green]
                            >> I have never seen a recommendation of any Danny Goodman book posted to
                            >> this newsgroup in the last couple of years, strong or otherwise. At
                            >> least by anyone worth paying any attention to, which is important as[/color]
                            >
                            > Well, that's part of the problem, isn't it? How is one to judge, unless
                            > one regularly spends time reading the group?[/color]

                            The simplest and IMHO best approach for verification is to compare so-called
                            tutorials against the specs and then compare the specs against the reality,
                            i.e. perform field tests in all versions of all UAs on all platforms you
                            can access. That is how I started to learn the scripting languages
                            discussed here. *Thorough* reading of discussions in
                            de.comp.lang.ja vascript and this group, and then participating in them was
                            the next step. Even I, considering myself an intermediate, are still
                            learning. The field of client-side scripting is a wide one and has many
                            pitfalls, do not expect to learn everything about it overnight. And, of
                            course, do not expect a tutorial to provide this kind of knowledge.


                            HTH

                            PointedEars
                            --
                            "I think not", said Descartes before disappearing in a puff of smoke.

                            Comment

                            Working...