Learning JavaScript: Add Life to Your Web Pages by Shelley Powers

BUY IT NEW

  • $29.99 Online price
  • $26.99 Member price
  • Join Now
  • skip to cart
  • Add To List uiAction=GetAllLists&page=List&pageType=list&ean=9780596527464&productCode=BK&maxCount=100&threshold=3

Usually ships within 24 hours

FIND & RESERVE AN IN-STORE COPY

Enter a zip code

(Paperback)

  • Publisher: O'Reilly Media, Incorporated
  • Pub. Date: October 2006
  • ISBN-13: 9780596527464
  • Sales Rank: 254,068
  • 335pp
 
  • Overview
  • Editorial Reviews
  • Customer Reviews
  • Features
  • Full Product Details

Synopsis

As Web browsers have become more capable and standards compliant, JavaScript has grown in prominence. "Learning JavaScript" introduces this powerful scripting language to Web designers and developers in easy-to-understand terms.

Annotation

As Web browsers have become more capable and standards compliant, JavaScript has grown in prominence. "Learning JavaScript" introduces this powerful scripting language to Web designers and developers in easy-to-understand terms.

More Reviews and Recommendations

Customer Reviews

  • Reader Rating:
  • Ratings: 2Reviews: 2

Learning JavaScript: Add Life to Your Web Pagesby Anonymous

Reader Rating:
See Detailed Ratings

April 17, 2007: Book Review: Learning JavaScript by Shelley Powers Copyright 2007 ISBN-10: 0-596-52746-2 or ISBN-13: 978-0-596-52746-4 Review written by Linda Weller This book was really a surprise!! I wasn't sure that I was going to like it. It however, proved to be packed with lots of useful information. As a huge fan of ActionScript, I saw the many parallels that are spoken of in regards to these two languages. It was fun going through it to see that there is so much I already know of JavaScript because I know ActionScript. There are similarities but, there are also differences. One being that JavaScript hasn't gone in the direction of OOP as much as ActionScript has. Shelley makes clear that Java Script cross-browser incompatibility has been based on DOM or CSS differences not the Java Script language. JavaScript is useful for form field validation, setting and retrieving web cookies, providing feedback for incorrect form entries, hiding and showing elements, moving elements about the page, capturing user events and adjusting them on the page accordingly, scrolling content, and interfacing with a server-side application without leaving the page. The syntax for including a JavaScript library or script file in your web page is script type = 'text/javascript' src='somejavascript.js' /script This is helpful to know when as a Flash developer you will need to use this line of code in the header of your HTML file to use the Flash (SWF) Object as a work around for the Microsoft Eula. Comments are written the same way in both languages. I appreciate the higher-level view of programming this book gives you. The author has written books not only on JavaScript but, ASP and Unix so it really has a technical flavor. Comments are written the same way in both languages. One thing that is quite different is the use of ellipses.... They mean that what follows is processed if the equality operators are evaluated to be true. The author gives you a real history of the use of JavaScript. She explains how ten years ago when most browsers were on their first or second version, JavaScript contents were enclosed in HTML comments !--and -- . This was done to keep some browsers from printing the output of the script tag to the page. When the script was enclosed between these HTML comment tags the browsers didn't know it was there. However, that is not something we do today because browsers that don't understand JavaScript are long gone and use of these tags conflicts with pages created as XHTML. There is discussion about all the programming basics for JavaScript like data types and variables, scope, statements, conditional statements, switch statements, and conditional operators, loops, regular expressions, functions, and objects. Shelley even gives you the URL for a free JavaScript editor. And many useful links full of JavaScript libraries. The DOM 2 Event Model is discussed. Each object has 3 methods: addEventListener, removeEventListener, and dispatchEvent. Then the author goes on to talk about JIT Validation. This stands for Just-in-Time. It is timely forms validation that is triggered as the user goes through the form fields. Shelley gives you the method to store/read cookies. You will need the cookie name or key, an associated value (cookieName = cookieValue, an expiration date, and a path associated with the cookie (at the top most level of your domain for security). You also must specify...

Learning JavaScript: Add Life to Your Web Pagesby Anonymous

Reader Rating:
See Detailed Ratings

March 23, 2007: Book Review: Learning JavaScript by Shelley Powers Copyright 2007 ISBN-10: 0-596-52746-2 or ISBN-13: 978-0-596-52746-4 Review written by Linda Weller This book was really a surprise!! I wasn't sure that I was going to like it. It however, proved to be packed with lots of useful information. As a huge fan of ActionScript, I saw the many parallels that are spoken of in regards to these two languages. It was fun going through it to see that there is so much I already know of JavaScript because I know ActionScript. There are similarities but, there are also differences. One being that JavaScript hasn't gone in the direction of OOP as much as ActionScript has. Shelley makes clear that Java Script cross-browser incompatibility has been based on DOM or CSS differences not the Java Script language. JavaScript is useful for form field validation, setting and retrieving web cookies, providing feedback for incorrect form entries, hiding and showing elements, moving elements about the page, capturing user events and adjusting them on the page accordingly, scrolling content, and interfacing with a server-side application without leaving the page. The syntax for including a JavaScript library or script file in your web page is script type = 'text/javascript' src='somejavascript.js' /script This is helpful to know when as a Flash developer you will need to use this line of code in the header of your HTML file to use the Flash (SWF) Object as a work around for the Microsoft Eula. Comments are written the same way in both languages. I appreciate the higher-level view of programming this book gives you. The author has written books not only on JavaScript but, ASP and Unix so it really has a technical flavor. Comments are written the same way in both languages. One thing that is quite different is the use of ellipses.... They mean that what follows is processed if the equality operators are evaluated to be true. The author gives you a real history of the use of JavaScript. She explains how ten years ago when most browsers were on their first or second version, JavaScript contents were enclosed in HTML comments !--and -- . This was done to keep some browsers from printing the output of the script tag to the page. When the script was enclosed between these HTML comment tags the browsers didn't know it was there. However, that is not something we do today because browsers that don't understand JavaScript are long gone and use of these tags conflicts with pages created as XHTML. There is discussion about all the programming basics for JavaScript like data types and variables, scope, statements, conditional statements, switch statements, and conditional operators, loops, regular expressions, functions, and objects. Shelley even gives you the URL for a free JavaScript editor. And many useful links full of JavaScript libraries. The DOM 2 Event Model is discussed. Each object has 3 methods: addEventListener, removeEventListener, and dispatchEvent. Then the author goes on to talk about JIT Validation. This stands for Just-in-Time. It is timely forms validation that is triggered as the user goes through the form fields. Shelley gives you the method to store/read cookies. You will need the cookie name or key, an associated value (cookieName = cookieValue, an expiration date, and a path associated with the cookie (at the top most level of your domain for security). You also must specify whether the...