"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns94D471DDFF2B2jkorpelacstutfi@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 &.
>[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?this=that&that=something"> 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@sasktel.net http://wildprop.sasktelwebsite.net/4sale/