Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Javascript Help

Author
Message
DqP
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: |\\/|/-\\|_\'|\'/-\\
Posted: 4th Aug 2004 02:27
Can Someone tell me where the error is?



spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2004 02:43
Not quite sure what you are trying to achieve but this at least runs




Boo!
DqP
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: |\\/|/-\\|_\'|\'/-\\
Posted: 4th Aug 2004 02:55
Yes, that it. Thanks

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Aug 2004 02:57
The original code just has either missing braces or braces in the wrong place - depending on how you look at it.

Here's the equivalent with braces:



*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
DqP
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: |\\/|/-\\|_\'|\'/-\\
Posted: 4th Aug 2004 03:07
@IanM I'm very sorry, but your script have an error when talking on braces.

empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 4th Aug 2004 03:09 Edited at: 4th Aug 2004 04:56


Play Nice! Play Basic! Out now.

nFinity Emulator. Coming soon.
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 4th Aug 2004 04:35
Perhaps check the semi-colon on the first line, or lack of.

empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 4th Aug 2004 04:56
Huh?

Play Nice! Play Basic! Out now.

nFinity Emulator. Coming soon.
MikeyP
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: Manchester, UK
Posted: 4th Aug 2004 05:24
You need a ; after each command I know people have sorted this, but for future refrence.
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 4th Aug 2004 06:22
A semi-colon terminates a line. Although JavaScript is rather relaxed about this, opposed to Pascal, C or Java.

Play Nice! Play Basic! Out now.

nFinity Emulator. Coming soon.
DqP
20
Years of Service
User Offline
Joined: 20th Dec 2003
Location: |\\/|/-\\|_\'|\'/-\\
Posted: 5th Aug 2004 03:28
Thanks to all. Finally it works.

Login to post a reply

Server time is: 2024-09-22 10:22:55
Your offset time is: 2024-09-22 10:22:55