CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13
  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,801

    Can anyone recommend a good JavaScript tutorial?

    Beginner level would be best. I'm taking my first steps into JavaScript programming which (up to now) I've been doing just by adapting bits of code that I've found in web pages etc. I find the basics easy enough to follow but already, it seems clear that there's a lot going on "under the hood". For example 'document' appears to be some sort of predefined variable and I'm sure there must be others too, as well as predefined functions. A good book would probably be the best place for me to start.
    "A problem well stated is a problem half solved.Ē - Charles F. Kettering

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: Can anyone recommend a good JavaScript tutorial?

    A simple Google search would have easily given you what you needed. The first search result...W3School's JavaScript section should be every beginner's first stop for JavaScript.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,801

    Re: Can anyone recommend a good JavaScript tutorial?

    Thanks, but technical books have never been cheap - and I've done enough programming to realise that not every book on the shelves is necessarily a good one (in fact, this is especially true of beginner level tutorials). A good recommendation can be worth its weight in gold.
    "A problem well stated is a problem half solved.Ē - Charles F. Kettering

  4. #4
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,801

    Re: Can anyone recommend a good JavaScript tutorial?

    This morning I spent some time looking at the W3School's tutorial and it is indeed a good starting point and simple to follow. But I'm still unsure about these predefined objects, such as document The W3School tutorial doesn't explain this very well (in fact, I couldn't find any explanation at all).

    Is document an object that already exists for every HTML page? Or does it only exists if a HTML page contains JavaScript? And is it the only predefined object or are there others? And if a page contains a form, is the form a document in its own right or can each page only contain one document?

    I don't think I'll have much trouble learning the language itself but it's that kind of thing (the 'underpinning') that I'm interested in finding out about.
    "A problem well stated is a problem half solved.Ē - Charles F. Kettering

  5. #5
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: Can anyone recommend a good JavaScript tutorial?

    Oh...it's definitely there. It's just not directly covered under the tutorials.

    http://w3schools.com/htmldom/dom_obj_document.asp
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  6. #6
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,801

    Re: Can anyone recommend a good JavaScript tutorial?

    That's great PeejAvery - just what I was looking for..!
    "A problem well stated is a problem half solved.Ē - Charles F. Kettering

  7. #7
    Join Date
    Jul 2008
    Posts
    24

    Re: Can anyone recommend a good JavaScript tutorial?

    Hey, I just came across 2 tutorials try it out. Hope these could help you.

    http://www.cs.brown.edu/courses/brid...-tutorial.html
    http://www.webmonkey.com/tutorial/JavaScript_Tutorial

  8. #8
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,279

    Re: Can anyone recommend a good JavaScript tutorial?

    Here's some more info on the Document Oject Model :
    http://www.w3.org/DOM/
    http://www.w3schools.com/js/js_obj_htmldom.asp
    http://www.quirksmode.org/dom/intro.html

    Once you get the hang of it, you then realise how powerful JavaScript actually is.

    Good luck!

  9. #9
    Join Date
    Jul 2005
    Location
    Currently in Mexico City
    Posts
    568

    Re: Can anyone recommend a good JavaScript tutorial?

    IMHO one the best javascript reference resources with good visual explanations and schemes. Nice for mid-level js coders.
    http://www.howtocreate.co.uk/
    Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?

    I had a nightmare last night. I was dreaming that Iím 64-bit and my blanket is 32-bit and I couldnít cover myself with it, so Iíve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S (from: bash.org.ru)

    //always looking for job opportunities in AU/NZ/US/CA/Europe :P
    willCodeForFood(Arrays.asList("Java","PHP","C++","bash","Assembler","XML","XHTML","CSS","JS","PL/SQL"));

    USE [code] TAGS! Read this FAQ if you are new here. If this post was helpful, please rate it!

  10. #10
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,801

    Re: Can anyone recommend a good JavaScript tutorial?

    Thanks for all the tips. I called in at my local Waterstones yesterday and these 2 books caught my eye:-

    JavaScript and DHTML Cookbook by Danny Goodman

    Beginning Javascript with DOM Scripting and Ajax by C. Heilmann

    I don't know what kind of reputation they've got but I might buy one if it's suitable.
    "A problem well stated is a problem half solved.Ē - Charles F. Kettering

  11. #11
    Join Date
    May 2002
    Posts
    1,435

    Re: Can anyone recommend a good JavaScript tutorial?

    Quote Originally Posted by John E View Post
    Thanks, but technical books have never been cheap - and I've done enough programming to realise that not every book on the shelves is necessarily a good one (in fact, this is especially true of beginner level tutorials). A good recommendation can be worth its weight in gold.
    I've been posting in these forums for years (primarily C++) but I've just recently begun to do web programming. I can't recall ever recommending a book before but in this case I do have a clear favorite - and it's also the cheapest of the approximately10 or so books I've bought on web programming. The Borders price tag is still on it and it says $21.95 (may be a few years old though).

    The book is "JavaScript For The World Wide Web" by Tom Negrino and Dori Smith. It's published by Peachpit Press in the "Visual Quickstart Guide" series.

    It's exactly the kind of book I like - short, simple, practical and to the point - rather than reference-like - very dense and extremely technical. It helped get me up and running very quickly.

  12. #12
    Join Date
    Jul 2005
    Location
    Currently in Mexico City
    Posts
    568

    Re: Can anyone recommend a good JavaScript tutorial?

    IMHO Javascript language is not the Arcane Arts of the Higher and Lower Planes available only for the chosen magi. It's used every day by almost every web designer and web programmer, so there are tons of free tutorials, articles, examples, threads and even books in the web. So probably to buy a book on JS in a store would be a waste of money. Exept the case you really would show some support to the respected and beloved author, of course.
    Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?

    I had a nightmare last night. I was dreaming that Iím 64-bit and my blanket is 32-bit and I couldnít cover myself with it, so Iíve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S (from: bash.org.ru)

    //always looking for job opportunities in AU/NZ/US/CA/Europe :P
    willCodeForFood(Arrays.asList("Java","PHP","C++","bash","Assembler","XML","XHTML","CSS","JS","PL/SQL"));

    USE [code] TAGS! Read this FAQ if you are new here. If this post was helpful, please rate it!

  13. #13
    Join Date
    Feb 2022
    Posts
    1

    Re: Can anyone recommend a good JavaScript tutorial?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured