Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Versions

    Hey guys is there alot of difference between the JavaScript versions 1.4 1.5 and later versions?? Like i got a book on Javascript and i was interested in learing Javascript but the books based on Javascript 1.4...Now i read somewhere that Javascript 1.4 is not used in Browsers and it is used only in Netscape Servers!!Is this true? And will learning JavaScript 1.4 help me out in creating web pages!! Pls give me some advice guys..I'm totally confused like should i go through the book or should i jus buy another book based on the latest version of Javascript??

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    In fact the latest version of Javascript is 1.7.

    For more info see:-

    http://devedge-temp.mozilla.org/cent.../index_en.html

    You should always study reference books/tutorials relating to the most recent version.

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 584 Times in 565 Posts
    the core syntax remains relatively unchanged.

    they try to keep old code working when they update, so if your book is well written and understandable, don't worry too mush about it being old.

    changes comes as additions, extra keywords and whatnot. they rarely take anything away.

    1.5 is the current cross-browser version.
    you can add many of the features of 1.6 to non-firefox browsers using prototypes.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #4
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey thanks alot guys...the book i've got seems to be good-its got alot of coding in it....I was just going through the book i was talking about...i was going through all the loops and other statements...i understand the whole concept and how it works etc but i have absolutely no idea how to use these in a program!!!.... i.e i cant write a program based on these concepts!! Any advice?? From where can i get the ideas that'll help me to use these concepts etc....

    thnx

    BTW the book i'm talking about is:-
    PURE JAVASCRIPT by R.Allen Wyke, Jason D. Gilliam and Charlton Ting.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by djchub View Post
    ...i understand the whole concept and how it works etc but i have absolutely no idea how to use these in a program!!!.... i.e i cant write a program based on these concepts!!
    BTW the book i'm talking about is:-
    PURE JAVASCRIPT by R.Allen Wyke, Jason D. Gilliam and Charlton Ting.
    I feel much the same about underwater motorcycling. I understand the concept completely but find it hard to put into practice.

    Try something like "Javascript in Easy Steps" by Mike McGrath.

  • #6
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 584 Times in 565 Posts
    something that really help me was just installing firebug.
    whenever i see some interesting technique or application, i think "how did they do that"? with firebug, the answer is usually within a couple clicks.

    one of the best parts about javascript is that it is all open-source. it can be "yuckied" up, but calling toString() on a minimized function reveals it flow stucture. (in firfox at least).

    i started learning by reading reference manuals. you should have at least heard of every global, all the default string and array prototypes, html tag names, etc. there is quite a bit of memorization at first. Eventually you will find that you not only have heard of all the keywords, you actually know what they do. still later, you get to the point where you know when, where, and how to use them to do what you want to do. And hopefully someday. you will figure out why to use them.


    once you get familiar with using the tools, building is easier. i tend to learn beter from real-life example than book, but everyone is different.


    set goals, and you will reach them.

    $0.02
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #7
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    djchub, an HTML/XHTML document has elements (tags, text...). Elements have attributes. Attributes have values. Javascript is able to create/change/remove all these at a client-level. For this, javascript uses methods. The methods are nested in functions. The functions are called by events, following the user's actions.

    All you have to do is to learn how to refer the document elements and which are the native javascript methods and events.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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