Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - JavaScript! | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Snika

Boo
Level: 44

Posts: 256/916
EXP: 600678
For next: 10607

Since: 07-21-04
From: Freezing Cold Alaska!

Since last post: 2 days
Last activity: 2 days
Posted on 07-27-05 05:10 AM Link | Quote
Paraplayer told me to learn JavaScript or else my arse is fired from his gaming company...

So, this brings me to my list of questions.

Anyone know of any killer tutorials?
Where should I start?
Are there some kick-bottom editors out there?
What can JavaScript do?
Is it simliar to Flash's ActionScript and Mac's AppleScript?
Is it insanley hard?
Should I start with a smaller language and work my way up?
Does Subway use JavaScript?

Please, help me. I would like to learn a programming language and this whole JavaScript sounds as good as any.

=P Snika
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 3669/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 07-27-05 05:46 AM Link | Quote
uh...this should be able to answer many of your questions:
Javascripter FAQ
Javascript by Wiki

and uh...I think subway uses Javascript on their webpage
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 6079/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 07-27-05 06:15 AM Link | Quote
Javascript is, as its name implies, a sort of 'Java Lite'. It does make a decent starting language, since it's simple but similar to C. Here's some sample code to get you started:

<script language="javascript">
function ShowAMessageBox(text)
{
alert(text.toUpper());
}
</script>

<button onclick="ShowAMessageBox('Greetings planet!')">Click Me</button>


When you click the button, the message "GREETINGS PLANET!" will appear. (I'd show you, but it's kind of impossible here. ) Some key points to notice here:
  • You can just use <script>, but proper HTML specifies the language as well. (Makes it easier to read, too.) It's a good habit to get into, lest your code look like the board's.
  • Unlike in C, you don't use types. All functions are 'function' and all variables are 'var'. Strings work a bit different, though. IIRC you do something like var x = new String();.
  • The onclick statement, as you might expect, executes code when something gets clicked. Note the 2 different types of quotes. If you tried to use " inside the statement, you would close the quote, so you need to use ' instead. If you need to put quotes in a string, you can use \", \' or in some cases &quot;.
  • If you don't want all caps, just do alert(text);, you don't need to have a .whatever() at the end.
  • You must have a semicolon at the end of a statement, and everything is case-sensitive. A pain, but you'll get used to it. Note that for, while, if and else statements don't have a semicolon before their contents, as it's considered all one statement (eg: if(something) doThis(); else doThat(); ).
Narf
Hi Tuvai!
(reregistering while banned)
Level: 16

Posts: 77/100
EXP: 17634
For next: 2622

Since: 12-26-04

Since last post: 22 hours
Last activity: 14 hours
Posted on 07-31-05 08:26 PM Link | Quote
W3schools, tutorials and samples you can edit online and emediately test out. Not only for Javascript but for a whole bunch of programming and markup languages.


(edited by Narf on 07-31-05 11:26 AM)
score_under

Level: 4

Posts: 2/10
EXP: 271
For next: 8

Since: 08-20-05

Since last post: 71 days
Last activity: 52 days
Posted on 08-21-05 09:31 PM Link | Quote
Javascript can:
  • automatically submit things ( form.submit() )
  • change images ( image.src="" )
  • preload images ( xxx=new Image(); xxx.src="" )
  • make sounds for events ( bgsound.src="" )
  • etc...
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 6482/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 08-22-05 12:31 PM Link | Quote
Bit of a bump, and you forgot one of the coolest rarely-used features. Not sure exactly how, but JS can download and parse XML. Gmail uses it a lot.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - JavaScript! | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.