In article <59*************************@posting.google.com> ,
mb@goalseek.net
(Marc R. Bertrand) writes:
Someone solved the problems I posted below. The problems were due to
an image variable name that I used twice. A 'common' but not easily
detected oversight. That someone is a professional: Mr. Brad Hedge.
Please check Brad's site out. You will *NOT* waste your time:
http://codepunk.hardwar.org.uk/
From his page, in the Javascript tutorials, lesson 2, on alert boxes:
<quote>
Making alert() boxes is pretty simple, but it helps to have a little overview
of the hierarchy of objects that JavaScript recognizes. At the top of the heap
is "navigator". This is the browser that the viewer is using. It's usually
either Internet Explorer or Netscape. The "navigator" object has lots of
properties, but you can't change any of them. We'll be using these properties
later to see which browser a viewer is using (navigator.appName). The
properties of "navigator" can tell you the browser's name, version, and other
neat stuff like what plug-ins are installed.
</quote>
The part that struck me first was "We'll be using these properties later to see
which browser a viewer is using (navigator.appName)."
That, in and of itself, makes it a *bad* tutorial site.
When I write a script, I dont care what browser you are using. I want to know
if your browser supports the objects and methods that I want to use. It matters
not if its IE6.0 or if its FunkyBrowser 3.77 (I made that name up).
Throughout, he uses language="javascript" which is deprecated. More bad habits
he is "teaching".
Further down that page:
<quote>
You don't need quotes for numbers. In fact, you can do a little math in your
alert() box:
</quote>
While its not a major flaw, its a technically incorrect statement. And when
teaching people, its best to be as accurate as you possibly can. The statement
above, to me, implies that the alert is doing the math when in fact its not.
All an alert box can do is display a message, thats all. The javascript
interpreter does the rest. A better statement might be "You can display the
results of math in your alert()"
From his code for his pages:
<a href="javascript
:popmenu('menu3')" class="nav">Downloads</a>
http://www.jibbering.com/faq/#FAQ4_24
I guess if you want to learn javascript, you must have it enabled eh? That is
totally false.
So I guess I take difference with whether a newbe would be wasting time there
(I think they would be).
--
Randy