From: | Matt Sealey |
Date: | 12 Mar 2001 at 23:33:08 |
Subject: | Re: Javascript Does'nt work on my amiga ??? |
Hello Neil
On 13-Mar-01, you wrote:
> Matt Sealey said,
>
>> Hello Neil
>
>>> The script you posted had more errors than lines. You've defined the
>>> function as a method of the heading tag. How can a piece of text have an
>>> onClick handler? Only links have those.
>
>> Nearly all objects on the page that can be enclosed in tags have onClick
>> handlers.
>
> What is a click in the context of the H2 tag? An onClick handler on
> something that isn't clickable makes no sense.
The text between <H2> and </H2> is obviously a clickable space: like a
link, just without the special "it points somewhere" properties. Of course,
if you wanna change the document.location property when you click on
it..
>http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onclick.asp
>
> That's DHTML, not HTML.
Event handlers and Javascript aren't HTML, they're DHTML.
>>> You haven't called the function anywhere
>
>>> and there are no comments to prevent non-JS browsers displaying the
>>> contents of the script.
>
>> Like that matters :)
>
> About as much as the missing closing brace. A lot of people browse with
> JavaScript disabled, many companies insist on it.
If Javascript is disabled, any self-respecting browser just ignores everything
between <script> and </script>. Any browser which doesn't HAVE Javascript
knowledge quite obviously won't, but in context, on your supposition, it
doesn't matter really. 9 bytes is a lot of space :P
>>> I'd suggest thinking through what you want to do more clearly, and then
>>> reading some books or tutorials on JavaScript to determine the best way
>>> to do it.
>
>> I suggest you quit taking Netscape 4.7's word for the scope of Javascript
>> these days, and read up on the documentation for NS6 and IE5.5 ;)
>
> And that would explain why V3 asks for volume Ram%20Disk:?
He's loading the page from RAM, and the Javascript handlers etc. are
throwing a fit and trying to access something from that disk again -
via a web-escaped form of the volume name.
Until I can reproduce it (I can't, my RAM disks are called RAM: and RAM:,
spaces are the devil's work :) it's a non-problem.
Thanks
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Make good on the promise you made at graduation to keep
in touch. Classmates.com has over 14 million registered
high school alumni--chances are you'll find your friends!
http://us.click.yahoo.com/l3joGB/DMUCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->
Quote carefully and read all ADMIN:README mails
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/