Designing with JavaScript, 2nd Edition

  Author:    Nick Heinle, Bill Pena
  ISBN:    156592360X
  Sales Rank:    497907
  Published:    2001-12-15
  Publisher:    O'Reilly Media, Inc.
  # Pages:    400
  Binding:    Paperback
  Avg. Rating:    4.0 based on 7 reviews
  Used Offers:    15 from $15.51
  Amazon Price:    $26.56
  (Data above last updated:  2008-11-27 06:06:10 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Designing with JavaScript, 2nd Edition
  
JavaScript is one of the core technologies of the Web. Using JavaScript, you can create dynamic, interactive web pages that include image rollovers, pop-up windows, auto-scrolling frames, intelligent forms, and sophisticated Dynamic HTML effects. Even better, you don't have to be a programming ace to learn enough JavaScript to incorporate these elements into your web pages. Designing with JavaScript shows you how to create the effects you want, without forcing you to wade through pages of dry programmer-speak about variables, operators, and functions. Each chapter demonstrates common JavaScript techniques and explains how to customize them for your own use. Along the way, it introduces basic JavaScript concepts, teaching the language in the context of real-world examples. By the time you finish this book, you'll have a solid foundation of JavaScript knowledge that you can apply to your own web pages. With Designing with JavaScript, you will learn to:
  • Use JavaScript to produce visual effects, such as image rollovers and rotating billboards
  • Launch new browser windows, control frames, and validate form data
  • Customize your site by using JavaScript to detect browsers, platforms, and plug-ins
  • Use cookies to keep track of visitors, so you can welcome new users while offering customized pages to returning users
  • Create a tabbed folder interface, drop-down menus, and a scrolling headline ticker, using the basics of Dynamic HTML
The first edition of Designing with JavaScript taught tens of thousands of web designers how to enliven their pages with JavaScript. This new edition has been updated to cover the latest JavaScript techniques supported by current web browsers. If you are ready to start incorporating JavaScript into your designs, this is the book for you.
Designing with JavaScript opens up a whole new world to Web-design artists, especially those making the leap from a print-design background. Many people liken Web design to print design, but there is nothing interactive about a printed page. Web pages, however, can be completely dynamic, different from moment to moment and responsive to the reader. The best way to take advantage of this is through JavaScript.

Eleven chapters and four appendices cover the basics to the complex, from extracting and validating information using forms to creating rotating images to using DHTML for animation. The first half covers basic yet important issues like an introduction to the syntax of the language, browser detection, setting up forms, and controlling frames and windows. Filled with examples, screen shots, and links to more examples and info, these chapters build a solid foundation for the second half of the book.

Dynamic images, rollovers, using cookies, and creating interactive features using DHTML are some of the features covered later in the book, with numerous practical examples. These chapters are invaluable for the learning designer, as nearly every feature is practically required on a contemporary Web site. The appendices include a handy JavaScript guide to the language, including syntax, handlers, an object guide, and style properties.

Not everything can be handled (yet) through the available WYSIWYG editors, making this book an invaluable reference and one to keep at your fingertips. --Mike Caputo

                  Reader Reviews 1 - 10 of 10                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
04-24-06 2 1\1
(Hide Review...)  examples don't work
Reviewer Permalink
I tried to do the autoscroll example from chapter three. I started with the samples I downloaded and unzipped from the O'Reilly site. The first thing I noticed was that the picture in the samples was different from the picture in the book (no bother there), but then I noticed the picture was not really big enough to fill up the full width of the page, much less be big enough to scroll.



I went to a site which had panoramas so I could find a picture big enough for the exercise, and finished writing the page. But when I tried it out, the script didn't work at all. Not being an expert, I assumed that I had done the exercise incorrectly, but when I tried the example downloaded from the O'Reilly website-- it didn't work either!!!



Also, I noticed the code example in the book did not match the sample document from the downloaded .zip file.



You would think they would have the bugs worked out by now: it IS, after all, the Second Edition!
(Review Data Last Updated: 2007-09-07 20:30:20 EST)
04-24-06 2 1\1
(Hide Review...)  examples don't work
Reviewer Permalink
I tried to do the autoscroll example from chapter three. I started with the samples I downloaded and unzipped from the O'Reilly site. The first thing I noticed was that the picture in the samples was different from the picture in the book (no bother there), but then I noticed the picture was not really big enough to fill up the full width of the page, much less be big enough to scroll.

I went to a site which had panoramas so I could find a picture big enough for the exercise, and finished writing the page. But when I tried it out, the script didn't work at all. Not being an expert, I assumed that I had done the exercise incorrectly, but when I tried the example downloaded from the O'Reilly website-- it didn't work either!!!

Also, I noticed the code example in the book did not match the sample document from the downloaded .zip file.

You would think they would have the bugs worked out by now: it IS, after all, the Second Edition!
(Review Data Last Updated: 2008-11-27 06:07:55 EST)
02-24-05 5 1\1
(Hide Review...)  Good resource on DOM, DHTML, and java script
Reviewer Permalink
If you are looking for a book to cover DHTML, DOM, and java scripting with a view to enhance your web sites, this is an excellent book.

I have developed many corporate ASP.NET web sites, and did not rely on java scripting for anything. (Yes ASP.NET pages do generate some java scripts).

I found this book a great stepping off point to learn CSS, DHTML, DOM, and using java scripts to enhance my web sites.
(Review Data Last Updated: 2007-07-01 13:40:28 EST)
02-23-05 5 1\1
(Hide Review...)  Good resource on DOM, DHTML, and java script
Reviewer Permalink
If you are looking for a book to cover DHTML, DOM, and java scripting with a view to enhance your web sites, this is an excellent book.

I have developed many corporate ASP.NET web sites, and did not rely on java scripting for anything. (Yes ASP.NET pages do generate some java scripts).

I found this book a great stepping off point to learn CSS, DHTML, DOM, and using java scripts to enhance my web sites.
(Review Data Last Updated: 2006-12-12 18:57:58 EST)
01-11-04 4 3\3
(Hide Review...)  Very good book for getting up to speed quickly...
Reviewer Permalink
In some of my other reviews, I've talked about how you need a mixture of "how to" and reference books. This book falls into the "how to" realm, as this is a volume you can use if you're just starting out with JavaScript. Don't let the small size fool you, however. There's a lot of really good information packed into a book of manageable size.

The book is made up of a series of code samples that illustrate a particular task or function you'd want to accomplish in a web page. For instance, in the Forms And Validation chapter, the authors discuss why you would want to use JavaScript to do form validation. They then start out with a simple script to show how you'd set up a validation script for a form. After that, they start to build out the different validation edits that should catch invalid data. At the end, they recap with the complete script they just walked you through. The advantage to this style is that you are learning by doing real-world examples. And when finished, you have examples of code that you can refer back to in the future when you need similar functionality.

Another important thing to understand about JavaScript is how to use it to work with the object model of the browser, such as windows, forms, images, etc. Much of this information is interspersed within the chapters that are teaching you how to do things with JavaScript. I would have liked to see a chapter devoted just to the browser object model. However, given the intended audience (beginning web developers), it could have been a little too confusing to break that out.

For Notes/Domino developers, you'll find a lot that will be immediately useful as you start developing Domino web applications. Once again, the form validation section will help you to understand how you can use JavaScript to do your form validation instead of making round trips to the server to edit the Domino form using @Formula language. You will have to work a little harder to translate some of this into the Domino development environment, however. Since Domino translates Notes design objects into HTML "on the fly", you may never end up coding

tags by hand. You'll have to work to understand where you can put JavaScript code within Designer so that it works in your application. Having said that, you will still need to know how to code the JavaScript routines that you'll need. This book will help you get there.

Conclusion
I would recommend this book if you are just starting to get into using JavaScript for your Domino web apps. You'll get up to speed quickly on basic functionality, and you can refer back to the examples over time to help you figure out new features you want to add over time.

(Review Data Last Updated: 2007-07-01 13:40:28 EST)
03-21-03 3 6\6
(Hide Review...)  not for learning javascript
Reviewer Permalink
I'm a true beginner. I've been learning javascript, and this is definitely not the book for that. It claims to teach, but it doesn't, not really. I have to admit it does explain the techniques and examples used, but the style in which this book is written I did not find very conducive to learning the language. This is more like a compilation of the most commonly used scripts. The examples are made to be applied immediately in webpages. I did dip into it and use one or two scripts, but for the most part I did not get that much out of it(other than the pleasure of viewing the pretty pink swirly pattern on the cover and throughout the book).

I would compare this book's offerings to fast food: it all comes prepared, and the most you'll have to do is squeeze some ketchup on top of it. You won't be stepping into the kitchen.

I found JavaScript Programming for the Absolute Beginner, by Andy Harris, much better for learning javascript concepts and syntax.

(Review Data Last Updated: 2007-07-01 13:40:28 EST)
07-28-02 5 4\4
(Hide Review...)  Clear Explanations, Good Examples
Reviewer Permalink
I recommend this book to people that have done some HTML(& CSS), Javascript. This books presents the techniques that are used to create sliding menu bars, scrollers, tabbed folders, and many practical & useful scripts. The book doesnt delve deep into the syntax of javascript, but teaches you the technique instead. Together with the well chosen examples(& example code) and screenshots, it is easy to understand.

Although the example codes are simple, once you get the basics, you can easily create your own scripts using the techniques taught in the books and interwine them with your own imagination.

The xbStyle object presented at the end of the book really helped. Although its a little outdated (xbStyle.js has been split into 2- xbStyle.js and xbDOM.js). But the API's are still the same, except now they are more specific(being split into xbDOM[contains methods like xbGetElementById() ] and xbStyle[object] and all.

Overall, this terrific book will put you on the 'exponential' road to javascript success. It did to me

(Review Data Last Updated: 2007-07-01 13:40:28 EST)
03-20-02 5 9\9
(Hide Review...)  Great for Beginners
Reviewer Permalink
I am more of a designer than a programmer. This book caught my attention by it's title "Designing with Javascript". I wanted to design more engaging web pages. However HTML just wasn't enough. So I decided to learn Javascript. This is my first time diving into Javascript.

In the PREFACE it even says that "the examples are designed to be applied immediately in web pages, so explanations focus on the key features and discuss how the scripts can be modified to suit individual needs". It's true. From the beginning of this book you are diving right into the material, and can even apply some of the codes to your existing web pages. The material presented is VERY EASY to follow. It talks about the language from the very basic foundation. It gradually introduces you from the basic foundation to the more advanced functions.

This book is also from the O'Reilly Web Studio. From whom I also own other books for Web and Multimedia design and programming.

(Review Data Last Updated: 2007-07-01 13:40:28 EST)
03-19-02 5 9\9
(Hide Review...)  Great for Beginners
Reviewer Permalink
I am more of a designer than a programmer. This book caught my attention by it's title "Designing with Javascript". I wanted to design more engaging web pages. However HTML just wasn't enough. So I decided to learn Javascript. This is my first time diving into Javascript.

In the PREFACE it even says that "the examples are designed to be applied immediately in web pages, so explanations focus on the key features and discuss how the scripts can be modified to suit individual needs". It's true. From the beginning of this book you are diving right into the material, and can even apply some of the codes to your existing web pages. The material presented is VERY EASY to follow. It talks about the language from the very basic foundation. It gradually introduces you from the basic foundation to the more advanced functions.

This book is also from the O'Reilly Web Studio. From whom I also own other books for Web and Multimedia design and programming.

(Review Data Last Updated: 2006-12-12 18:57:58 EST)
11-30-01 4 23\25
(Hide Review...)  Practical Real-World Scripting
Reviewer Permalink
Most JavaScript books force you to slog through reams of reference material before you get to the good stuff. This book is not one of them. Nick Heinle, former WebReference expert and WebCoder wunderkind, and Bill Pena have updated Heinle's first edition into O'Reilly's patented Web Studio style intro to JavaScript.

Aimed at beginning to intermediate scripters, DWJ2 skips the dry stuff and dives right into practical real-world examples of useful scripts you can easily add to your own pages. Everything from simple descriptive links and remotes, to frames, form validation and arrays, through sniffing, rollovers, personalization through cookies, and more advanced topics are covered.

A brief DHTML chapter follows, with some simplified examples of drop-down menus (non-hierarchical), sliding tabs, and scrolling layers with clipping, useful for news feeds.

The advanced chapter covers object-oriented scripting and shows how to create a quiz to test your readers. Relational select menus (2-level) illustrate using two-dimensional arrays nicely.

I especially enjoyed the section on cross-browser style objects, where the authors demonstrate the use of Netscape's xbStyle object. xbStyle is a simple abstraction layer that removes the complexity of accessing style properties. Using xbStyle you can grab, hide, and move layers without worrying about implementation details of specific browsers.

The coolest thing about xbStyle is the layer grabbing technique. xbStyle implements a W3C-like document.getElementById() method for 4.0 browsers! For these older browsers, xbStyle redefines this method, to make its use seamless for scripters manipulating layers (DIVs). This example demonstrates the leveraging power of a well-executed API. This book is a good intro by example to JavaScript.

(Review Data Last Updated: 2006-07-07 09:51:20 EST)
  
                  Reader Reviews 1 - 10 of 10                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)