This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-11 11:46:26

EpicGameProductions
Scratcher
Registered: 2012-05-31
Posts: 1

JavaScript Help!

CHAPTER 1 / FIRST JAVASCRIPT APPLICATION
Hello! I am helping people with JavaScript! I was thinking that since I know JavaScript, I am deciding to help Scratchers with JavaScript. It is a simple programming language to use, and simple for any age. First of all, you don't need to download anything. You just need Notepad. Or,  if you wanna get all fancy, use Notepad++ if you have it.

JavaScript (you should know this) is in html. You need to know html first. You can code with JavaScript by typing in your html document:

Code:

<script type = "text/javascript">
//Some code
</script>

Today, we will start our first JS (short for JavaScript) app. It will show you how to make an alert box. The window.alert("Some text"); is going to show an alert box for us. Use every character that I type in the code box below:

Code:

<script type = "text/javascript">
window.alert("Hello World!");
</script>

Chapter 2 is coming soon on this topic!

Offline

 

#2 2012-06-11 11:50:03

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: JavaScript Help!

EpicGameProductions wrote:

CHAPTER 1 / FIRST JAVASCRIPT APPLICATION
Hello! I am helping people with JavaScript! I was thinking that since I know JavaScript, I am deciding to help Scratchers with JavaScript. It is a simple programming language to use, and simple for any age. First of all, you don't need to download anything. You just need Notepad. Or,  if you wanna get all fancy, use Notepad++ if you have it.

JavaScript (you should know this) is in html. You need to know html first. You can code with JavaScript by typing in your html document:

Code:

<script type = "text/javascript">
//Some code
</script>

Today, we will start our first JS (short for JavaScript) app. It will show you how to make an alert box. The window.alert("Some text"); is going to show an alert box for us. Use every character that I type in the code box below:

Code:

<script type = "text/javascript">
window.alert("Hello World!");
</script>

Chapter 2 is coming soon on this topic!

I thought you wanted help with it XD


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#3 2012-06-11 13:40:53

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: JavaScript Help!

You know, you can just use alert().

Offline

 

#4 2012-06-26 14:05:15

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JavaScript Help!

scimonster wrote:

You know, you can just use alert().

...or window.window.alert()


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#5 2012-06-26 14:52:37

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: JavaScript Help!

MathWizz wrote:

scimonster wrote:

You know, you can just use alert().

...or window.window.alert()

...or window.window.window.window.window.window.window.alert()


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#6 2012-06-26 15:36:50

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: JavaScript Help!

Or use jqueryUI's dialogs to make it look awesome.

:3


Hai.

Offline

 

#7 2012-06-26 16:54:10

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: JavaScript Help!

fg123 wrote:

Or use jqueryUI's dialogs to make it look awesome.

:3

+1

tongue

Offline

 

#8 2012-06-26 17:48:00

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JavaScript Help!

Screw that. console.log()
The programmer's way.
:3


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#9 2012-06-26 20:24:05

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: JavaScript Help!

One thing I'd like to note--a chapter in a book, is usually many pages. The chapter hear, is a few paragraphs.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#10 2012-06-26 20:29:03

Ecliptic
Scratcher
Registered: 2012-02-27
Posts: 500+

Re: JavaScript Help!

I think that's a little short for the first chapter, and you could've used alert() instead of window.alert()


If you can read this you are in range.

Offline

 

#11 2012-06-27 04:53:24

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: JavaScript Help!

It looks interesting but it seems a bit short.


http://trinary.tk/images/signature_.php

Offline

 

Board footer