HTML Code HELP

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

    HTML Code HELP

    I am trying to paste the following code into the HTLM editor of my
    webpage:

    <script src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845350&unit=0 &key=470c828c1e ed4306eeef1f0c1 1d4bf45'></script>

    But, it will not display correctly. Here's exactly what it displays:

    src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845350&unit=0 &key=470c828c1e ed4306eeef1f0c1 1d4bf45'></script>

    It's supposed to be a Weather indicator, but it just shows up as code.
    I've tested the code at
    http://www.jmarshall.com/easy/html/testbed.html and it dislpays fine,
    so I don't know what the problem.

    Sorry for the dubm question, but I'm new with HTML. Thanks,

    Garrett
  • Toni Mcintyre

    #2
    Re: HTML Code HELP


    "Gr8DaddyG" <garrett.johnso n@sbcglobal.net > wrote in message
    news:9a3b2d0a.0 404221637.15bcd 4e@posting.goog le.com...[color=blue]
    > I am trying to paste the following code into the HTLM editor of my
    > webpage:
    >
    > <script[/color]
    src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845
    350&unit=0&key= 470c828c1eed430 6eeef1f0c11d4bf 45'></script>[color=blue]
    >
    > But, it will not display correctly. Here's exactly what it displays:
    >
    >[/color]
    src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845
    350&unit=0&key= 470c828c1eed430 6eeef1f0c11d4bf 45'></script>[color=blue]
    >
    > It's supposed to be a Weather indicator, but it just shows up as code.
    > I've tested the code at
    > http://www.jmarshall.com/easy/html/testbed.html and it dislpays fine,
    > so I don't know what the problem.
    >
    > Sorry for the dubm question, but I'm new with HTML. Thanks,
    >
    > Garrett[/color]

    I put your code into a text file and ran it with MSIE6 and it came up
    beautifully. I am learning that MSIE will tolerate many things that other
    browsers won't. What browser are you using??

    I know from the past couple of days that this code won't validate.

    1. MUST HAVE THIS: <script type="text/javascript" .....
    i had a similar problem where my page would run fine at home on MSIE, but my
    friend's Netscape wouldn't run any of the scripts because i didn't have
    type="text/javascript". it didn't display the code as yours did, but again,
    what browser are you using?

    2. the validator won't accept foo.htm?var=val &var=val --- it wants you to
    foo.htm?var=val ;var=val
    i am having the same problem with my free page counter. i don't think it
    would help i if asked the author to change all his code so my page would
    validate.

    maybe if you addressed issue 1, the script would display properly, hope so,
    as it is a nice weather indicator

    Toni Mcintyre - edgeofthebush@s asktel.net




    Comment

    • Jukka K. Korpela

      #3
      Re: HTML Code HELP

      "Toni Mcintyre" <edgeofthebush@ sasktel.net> wrote:
      [color=blue]
      > I put your code into a text file and ran it with MSIE6 and it came up
      > beautifully.[/color]

      Well, MSIE does odd things with text files, even interpreting them as
      HTML documents. Anyway, when I test the OP's <script> element in an HTML
      document, it creates the weather forecast, if I allow scripting in my
      browser.

      Apparently the OP did something wrong in the cut & paste, e.g. pasted the
      stuff into a wrong place. By posting the URL of his own document, he
      would have saved everyone's time.
      [color=blue]
      > 1. MUST HAVE THIS: <script type="text/javascript" .....[/color]

      Well, the type attribute _is_ required by HTML syntax. And let us skip
      the embarrassing fact that it's a violation of MIME RFCs, since there is
      no registered media type text/javascript. But...
      [color=blue]
      > i had a similar problem where my page would run fine at home on MSIE,
      > but my friend's Netscape wouldn't run any of the scripts because i
      > didn't have type="text/javascript".[/color]

      Really? That would be surprising, since all browsers with scripting
      support that I know default to JavaScript anyway. But if a type attribute
      with a _different_ value is used, then browsers probably ignore the
      script element since they think the script is in some unknown language.
      [color=blue]
      > 2. the validator won't accept foo.htm?var=val &var=val[/color]

      Naturally it doesn't, and mustn't, since the HTML syntax is violated.
      [color=blue]
      > --- it wants
      > you to foo.htm?var=val ;var=val[/color]

      Nonsense. The validator does not want anything. Did you even read the
      validator's FAQ? Did you understand it?

      In HTML, the & character as data character should be written as &amp;.
      [color=blue]
      > i am having the same problem with my free page counter.[/color]

      That's surely not the worst problem you have with the free page counter.
      The counter itself is the worst problem; it's the archetypal indicator of
      childish design and produces worse than useless data.

      --
      Yucca, http://www.cs.tut.fi/~jkorpela/
      Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

      Comment

      • Tim

        #4
        Re: HTML Code HELP

        "Toni Mcintyre" <edgeofthebush@ sasktel.net> wrote:
        [color=blue][color=green]
        >> 1. MUST HAVE THIS: <script type="text/javascript" .....[/color][/color]


        "Jukka K. Korpela" <jkorpela@cs.tu t.fi> posted:
        [color=blue]
        > Well, the type attribute _is_ required by HTML syntax. And let us skip
        > the embarrassing fact that it's a violation of MIME RFCs, since there is
        > no registered media type text/javascript.[/color]

        Having never used JavaScript I'd not looked into that, I would have thought
        that, by now, there was a MIME type for it, but all I see is an
        experimental application/x-javascript one.

        Is that attribute (in a script element) specifically a MIME type, though?
        I see it described in the HTML specifications as a "ContentTyp e" data, "as
        per" RFC2045 (en e-mail specification). Though a term like "as per" has
        always meant "like" to me, rather than "specifical ly the same as". It all
        seems woefully vague.

        --
        If you insist on e-mailing me, use the reply-to address (it's real but
        temporary). But please reply to the group, like you're supposed to.

        This message was sent without a virus, please delete some files yourself.

        Comment

        • Harlan Messinger

          #5
          Re: HTML Code HELP

          Tim <tim@mail.local host.invalid> wrote:
          [color=blue]
          >
          >Is that attribute (in a script element) specifically a MIME type, though?
          >I see it described in the HTML specifications as a "ContentTyp e" data, "as
          >per" RFC2045 (en e-mail specification). Though a term like "as per" has
          >always meant "like" to me, rather than "specifical ly the same as". It all
          >seems woefully vague.[/color]

          "As per" means "according to". There's no connotation of "like"--it
          means "as stated in such-and-such source".


          --
          Harlan Messinger
          Remove the first dot from my e-mail address.
          Veuillez ôter le premier point de mon adresse de courriel.

          Comment

          • Markus Ernst

            #6
            Re: HTML Code HELP

            "Gr8DaddyG" <garrett.johnso n@sbcglobal.net > schrieb im Newsbeitrag
            news:9a3b2d0a.0 404221637.15bcd 4e@posting.goog le.com...[color=blue]
            > I am trying to paste the following code into the HTLM editor of my
            > webpage:
            >
            > <script[/color]
            src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845
            350&unit=0&key= 470c828c1eed430 6eeef1f0c11d4bf 45'></script>[color=blue]
            >
            > But, it will not display correctly. Here's exactly what it displays:
            >
            >[/color]
            src='http://voap.weather.co m/weather/oap/USFM0004?templa te=EVNTV&par=10 04845
            350&unit=0&key= 470c828c1eed430 6eeef1f0c11d4bf 45'></script>[color=blue]
            >
            > It's supposed to be a Weather indicator, but it just shows up as code.
            > I've tested the code at
            > http://www.jmarshall.com/easy/html/testbed.html and it dislpays fine,
            > so I don't know what the problem.
            >
            > Sorry for the dubm question, but I'm new with HTML. Thanks,
            >
            > Garrett[/color]

            It looks like you pasted the code into the layout view. Paste it into the
            code view, then the editor will not change html characters to entities.

            HTH
            Markus


            Comment

            • Safalra

              #7
              Re: HTML Code HELP

              "Jukka K. Korpela" <jkorpela@cs.tu t.fi> wrote in message news:<Xns94D471 DDFF2B2jkorpela cstutfi@193.229 .0.31>...[color=blue]
              > "Toni Mcintyre" <edgeofthebush@ sasktel.net> wrote:[color=green]
              > > i am having the same problem with my free page counter.[/color]
              >
              > That's surely not the worst problem you have with the free page counter.
              > The counter itself is the worst problem; it's the archetypal indicator of
              > childish design and produces worse than useless data.[/color]

              Not if the data you wanted was how many server requests were made for
              the counter - and that can be used as a lower bound for the number of
              server requests made for the page linking to the counter. It's not
              very accurate for all kinds of reasons, but it's better than nothing
              (just preferably get one that doesn't show the number in its graphic,
              and hide it away at the bottom of the page next to timestamp, and
              users are unlikely to notice it). Of course it's far better to get a
              decent host, but not everyone can afford that.

              --
              Safalra (Stephen Morley)

              Comment

              • Brian

                #8
                Re: HTML Code HELP

                Safalra wrote:
                [color=blue]
                > "Jukka K. Korpela" wrote ...
                >[color=green]
                >> The counter itself is the worst problem; it's the archetypal
                >> indicator of childish design and produces worse than useless data.[/color]
                >
                > Not if the data you wanted was how many server requests were made for
                > the counter - and that can be used as a lower bound for the number
                > of server requests made for the page linking to the counter.[/color]

                Its only possible use is to analyze server load. But surely if you want
                this information, server logs are far more useful.
                [color=blue]
                > It's not very accurate for all kinds of reasons, but it's better than
                > nothing.[/color]

                Why? It doesn't tell you how many people may have viewed your page, nor
                even how many requests were made for the page.
                [color=blue]
                > Of course it's far better to get a decent host, but not everyone can
                > afford that.[/color]

                If you cannot get access to server logs -- which I think is what you're
                hinting at with the phrase "decent host" -- then it's hard to imagine
                why you need concern yourself with server load.

                --
                Brian (remove "invalid" from my address to email me)

                Comment

                • Stan McCann

                  #9
                  Re: HTML Code HELP

                  Safalra wrote:[color=blue][color=green]
                  >>That's surely not the worst problem you have with the free page counter.
                  >>The counter itself is the worst problem; it's the archetypal indicator of
                  >>childish design and produces worse than useless data.[/color]
                  >
                  >
                  > Not if the data you wanted was how many server requests were made for
                  > the counter - and that can be used as a lower bound for the number of
                  > server requests made for the page linking to the counter. It's not
                  > very accurate for all kinds of reasons, but it's better than nothing
                  > (just preferably get one that doesn't show the number in its graphic,
                  > and hide it away at the bottom of the page next to timestamp, and
                  > users are unlikely to notice it). Of course it's far better to get a
                  > decent host, but not everyone can afford that.
                  >[/color]
                  You don't know how to read log files? Or don't have access to them?
                  All of the information provide by counters can be found in log files.

                  --
                  Stan McCann
                  Tularosa Basin chapter ABATE of NM Cooordinator, Alamogordo, NM
                  '94 1500 Vulcan (now wrecked) :(

                  Comment

                  • Toni Mcintyre

                    #10
                    Re: HTML Code HELP

                    "Jukka K. Korpela" <jkorpela@cs.tu t.fi> wrote in message
                    news:Xns94D471D DFF2B2jkorpelac stutfi@193.229. 0.31...[color=blue]
                    > "Toni Mcintyre" <edgeofthebush@ sasktel.net> wrote:
                    >[color=green]
                    > > I put your code into a text file and ran it with MSIE6 and it came up
                    > > beautifully.[/color]
                    >
                    > Well, MSIE does odd things with text files, even interpreting them as
                    > HTML documents. Anyway, when I test the OP's <script> element in an HTML
                    > document, it creates the weather forecast, if I allow scripting in my
                    > browser.
                    >
                    > Apparently the OP did something wrong in the cut & paste, e.g. pasted the
                    > stuff into a wrong place. By posting the URL of his own document, he
                    > would have saved everyone's time.
                    >[color=green]
                    > > 1. MUST HAVE THIS: <script type="text/javascript" .....[/color]
                    >
                    > Well, the type attribute _is_ required by HTML syntax. And let us skip
                    > the embarrassing fact that it's a violation of MIME RFCs, since there is
                    > no registered media type text/javascript. But...
                    >[color=green]
                    > > i had a similar problem where my page would run fine at home on MSIE,
                    > > but my friend's Netscape wouldn't run any of the scripts because i
                    > > didn't have type="text/javascript".[/color]
                    >
                    > Really? That would be surprising, since all browsers with scripting
                    > support that I know default to JavaScript anyway. But if a type attribute
                    > with a _different_ value is used, then browsers probably ignore the
                    > script element since they think the script is in some unknown language.
                    >[color=green]
                    > > 2. the validator won't accept foo.htm?var=val &var=val[/color]
                    >
                    > Naturally it doesn't, and mustn't, since the HTML syntax is violated.
                    >[color=green]
                    > > --- it wants
                    > > you to foo.htm?var=val ;var=val[/color]
                    >
                    > Nonsense. The validator does not want anything. Did you even read the
                    > validator's FAQ? Did you understand it?
                    >
                    > In HTML, the & character as data character should be written as &amp;.
                    >[color=green]
                    > > i am having the same problem with my free page counter.[/color]
                    >
                    > That's surely not the worst problem you have with the free page counter.
                    > The counter itself is the worst problem; it's the archetypal indicator of
                    > childish design and produces worse than useless data.
                    >
                    > --
                    > Yucca, http://www.cs.tut.fi/~jkorpela/
                    > Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
                    >[/color]

                    excuse me, but i think we went through all this MUST have
                    type="text/javascript" stuff a couple of days ago
                    (see: Validating <script> tags 4/19/04)

                    i learnt (very unfortunately for me) html on http://groups.msn.com/ since i
                    didn't have any access to the internet except at the library and, yes, MSIE
                    sucks as far allowing you todo just about anything in the way of
                    questionable syntax. so, for being away from programming for 6 years, i
                    picked up some bad habits about html.

                    anyways, all i know about this is that i was <script>....</script>
                    everywhere and it worked fine on MSIE and i didn't know any different until
                    my friend, who works at Sasktel's Internet Support Desk, and is a Netscape
                    geek, ran the site and NONE of the javascript did ANYTHING at all!!!!

                    i went to http://validator.w3.org/ and it wouldn't even look at my code with
                    the <a href="foo.htm?t his=that&that=s omething"> in the page counter. i
                    looked at all their references and it said that [loosely] "you should now
                    use this=that ; that=something because & was some special syntax for
                    something or other".

                    so, i commented out the counter code (which i'd really like because i'd like
                    to know if ANYBODY comes to my site) and then it started saying i didn't
                    need </script> because there was no open <script> tags.

                    after some discussion on THIS group, i put <script type="text/javascript">
                    everywhere and (after other issues) my pages started validating and my
                    Netscape friend can run the site and have it look "something" like i want it
                    to look.

                    so - before you are so rude to people who don't have quite as much
                    experience as you do, you should google "why do i have so much hubris when a
                    little simple arrogance would do" and see what comes up

                    no disrespect intended to all the other posters who helped me the other day



                    Toni Mcintyre - edgeofthebush@s asktel.net




                    Comment

                    • Alan J. Flavell

                      #11
                      Re: HTML Code HELP

                      On Fri, 23 Apr 2004, Brian wrote:
                      [color=blue][color=green]
                      > > Not if the data you wanted was how many server requests were made for
                      > > the counter - and that can be used as a lower bound for the number
                      > > of server requests made for the page linking to the counter.[/color]
                      >
                      > Its only possible use is to analyze server load. But surely if you want
                      > this information, server logs are far more useful.[/color]

                      Take a look at Mark Nottingham's cacheing tutorial. [1]

                      On a properly-designed cacheworthy site you can't identify normal
                      server hits with user access statistics, since many large ISPs
                      maintain cache server proxies.

                      However, if you had a tiddly image that's designed to be
                      non-cacheable, quite a proportion of caches will honour that, and
                      you'll get somewhat more accurate statistics, without significantly
                      impairing the response of the site as a whole.

                      Don't get me wrong - there are all kinds of different reasons why
                      server statistics tell a story that's quite different from real user
                      access patterns, no matter what you do.[2] And the harder you try to
                      make the answers more accurate, the more severely you'll impair the
                      behaviour of the site. I've known sites where, after they introduced
                      cookies for visitor tracking, access to the site became as exciting as
                      watching paint dry, and I bet lots of folks made a note, just as I
                      did, not to go back again. Just to take one kind of example of what
                      can go wrong.

                      Of course, server statistics are great for measuring what they
                      measure: server load. If you're looking to configure your server,
                      they're just what you'd need. But don't take them -too- seriously as
                      an indicator of user behaviour. Did I mention the chap who measured
                      user access statistics by means of an image being loaded, and who
                      concluded that the number of Lynx users was vanishingly small?

                      [1] http://www.mnot.net/cache_docs/

                      [2] http://www.goldmark.org/netrants/webstats/

                      Comment

                      • Brian

                        #12
                        Re: HTML Code HELP

                        [An attribute header got snipped, making it look like I wrote the first
                        quoted bit of this message; I did not. I've inserted the proper
                        attribute and moved the others to make it clear who said what.]

                        Safalra wrote:[color=blue][color=green][color=darkred]
                        >>> if the data you wanted was how many server requests were made
                        >>> for the counter - and that can be used as a lower bound for the
                        >>> number of server requests made for the page[/color][/color][/color]

                        On Fri, 23 Apr 2004, Brian wrote:[color=blue][color=green]
                        >> Its only possible use is to analyze server load. But surely if you
                        >> want this information, server logs are far more useful.[/color][/color]

                        Alan J. Flavell wrote:[color=blue]
                        > Of course, server statistics are great for measuring what they
                        > measure: server load. If you're looking to configure your server,
                        > they're just what you'd need.[/color]

                        Uh, right, that was the point I was trying to make, but apparently I failed.
                        [color=blue]
                        > Did I mention the chap who measured user access statistics by means
                        > of an image being loaded, and who concluded that the number of Lynx
                        > users was vanishingly small?[/color]

                        Nope, and now you've piqued my curiousity. Care to recount the story?

                        --
                        Brian (remove "invalid" from my address to email me)

                        Comment

                        • Alan J. Flavell

                          #13
                          Re: HTML Code HELP

                          On Fri, 23 Apr 2004, Brian wrote:
                          [color=blue]
                          > Alan J. Flavell wrote:[color=green]
                          > > Of course, server statistics are great for measuring what they
                          > > measure: server load. If you're looking to configure your server,
                          > > they're just what you'd need.[/color]
                          >
                          > Uh, right, that was the point I was trying to make, but apparently I failed.[/color]

                          My apologies - I went off on a trail of consciousness, and somehow
                          made it look, in the end, as if I was disagreeing with you. My fault
                          for the careless wording.

                          Comment

                          • David Dorward

                            #14
                            Re: HTML Code HELP

                            Toni Mcintyre wrote:
                            [color=blue]
                            > 2. the validator won't accept foo.htm?var=val &var=val --- it wants you to
                            > foo.htm?var=val ;var=val[/color]

                            foo.htm?var=val &amp;var=val is also fine, but more work to type.

                            --
                            David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>

                            Comment

                            • Safalra

                              #15
                              Re: HTML Code HELP

                              Stan McCann <stan@surecann. com> wrote in message news:<40893934$ 1@news.zianet.c om>...[color=blue]
                              > Safalra wrote:[color=green]
                              > > [a defence of sorts of visit counters] Of course it's far better to get a
                              > > decent host, but not everyone can afford that.
                              > >[/color]
                              > You don't know how to read log files? Or don't have access to them?
                              > All of the information provide by counters can be found in log files.[/color]

                              My defintion of 'decent host' includes access to log files. My point
                              was that many people on free ISPs will not have have access to log
                              files.

                              --
                              Safalra (Stephen Morley)

                              Comment

                              Working...