AmigaActive (624/1947)

From:Jan-Erik Karlsson
Date:10 Apr 2001 at 17:37:09
Subject:Re: JS and Amiga

Hello, Joris

On 09-Apr-01, you wrote:

JK > Hello,
JK >
JK > I'm doing some JavaScripting on the Amiga lately but I must say it's a
JK > real pain in the ass. You complety can't expect what code will work on
JK > which amiga browser.
JK >
JK > I always that Aweb would give the best results because it would with
JK > the most things i got from the net. There where even some digital
JK > clocks that would work with Aweb, and some games too. Never managed
JK > that with IB or V.
JK >
JK > But now i have something really simple that works with IB but not with
JK > Aweb: <html>
JK > <HEAD>
JK > <SCRIPT>
WRONG!!!!! the browsers doesn't know what script you're running
VB-Script, Arexx, JS etc.

correct is
<SCRIPT LANGUAGE="JavaScript">

read the books on JavaScript before you begin to blame the Amiga's browser's
this would most likely not work on any other browser either

JK > <!--
JK > function Open() {
JK > alert("dit moet toch wel werken")
JK > }
JK > //-->
JK > </SCRIPT>
JK > </HEAD>
JK > <BODY onload="Open()">
JK > </BODY>
JK > </html>
JK >
JK > It should only open a simple alertbox after loading, but it doesn't do
JK > anything. After some fiddling with the settings i managed to get the
JK > Alert for 1 time. With IB this doesn't give any problems. Do i
JK > something wrong here?
JK >
JK > Next thing: I say a digital clock that worked with Aweb. I guess it
JK > makes use of the function SetTimeout("somefunction",1000) to update
JK > itselfs. I can't get it to work with Aweb, is this function
JK > implemented? And are there any alternatives, because i really saw a
JK > working clock in Aweb.
JK >
JK > All these questions because i want to make a digital clock and the game
JK > Simon Says in JS. I saw both programs working on Aweb so I must can do
JK > it too :)
JK >
JK > Me really thinks to do JS on my PC from now, it's to much hassle on the
JK > amiga :(

JS troublesome on Amiga but not on PC? wake up and smell the roses JS on PC
simply sucks
there is not a singe JS book that will guarante that the JS they have in
their books will run on all the PC's browsers (they simply won't)

With kind regards,
Jan-Erik Karlsson



Email: trg@privat.utfors.se
UIN (ICQ): 54667153


Love is Grand. Divorce is Fifty Grand!

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Secure your servers with 128-bit SSL encryption!
Grab your copy of VeriSign's FREE Guide,
"Securing Your Web site for Business." Get it now!
http://us.click.yahoo.com/KVNB7A/e.WCAA/bT0EAA/d8AVlB/TM
---------------------------------------------------------------------_->

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/