AmigaActive (861/2347)

From:Matt Sealey
Date:12 Mar 2001 at 17:52:47
Subject:Re: Javascript Does'nt work on my amiga ???

Hello Nick

On 13-Mar-01, you wrote:

> Hi all,
>
>
> Can anyone tell me what is wrong with the following prgram:
>
> <html>
> <head>
> <title>JavaScript</title>
> </head>
> <body>
> <h2 ID=heading>Click me</h2>
> <script language="Javascript" type="text/javascript">
> function heading.onclick()
> {
> alert("you clicked ME!");

Why aren't you ending the function with a } here?

If you're gonna complain about JS not working, AT THE VERY LEAST
write decent code to complain about ;P

> When I load it into Voyager I get a requester "Please insert
> Ram20%Disk' What does this mean.

Something's f**ked.

> I tried it on my brothers PC and it worked. it displayed a piece of
> text 'Click Me' and when I click it a requester came up saying 'you
> clicked ME!'
>
> Whats going on ??

There isn't an Amiga browser on the planet that lets you attach
event handlers like that (yet :) - you could try defining the event
inside the tag itself: <h2 onclick="clickfunction();">blah</h2>
or so.

Thanks



Matt Sealey <matt@kittycat.co.uk>
Website http://www.kittycat.co.uk

------------------------ 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/