What is JavaScript For?

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

25-May-12 17:46
Hi all. I am new here and could really use some help.

Here's where I am.

To learn HTML/XHTML, I bought a book and the book had me build simple little pages, piece by piece. It started with some text, then adding images, forms, etc. Ok then, when the book said that HTML/XHTML was the structure of a webpage, it made sense.

Next was CSS. The book had me move elements around using positioning and floating. Change colors of text, background and links. OK, CSS is the style of the page. Easy to see.

Next, JavaScript. I have bought 4 or 5 books, read countless tutorials, watched video tutorials, all before I took a class (I am going to school to get a degree in web programming, though I just failed JavaScript). All books and tutorials teach theory. They explain loops, arrays, functions, etc. Every tutorial has lots of examples that I work through, but the problem I have is that the examples are not practical.

I can write the examples in the tutorials, and combine them into functions, but I can't take the examples and use them on a site, so I am having a really difficult time figuring out how and where to use JavaScript.

Did anyone experience this when they were learning JS? What made it click in your head?

I thought going to school with an instructor would help, but he taught theory as well, and by the time I figured out what my problem was, the semester was almost over.

Anyways, thanks for any replies.
26-May-12 12:31
Javascript is for when you need to modify an elements behaviour when dictated by a user action or an "event" clientside.

[Edited by chrishirst on 26-May-12 12:34]

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/

 
New posts
Old posts

Follow Elated