Register your product to gain access to bonus material or receive a coupon.
Provides students with an arsenal of powerful solutions to the most difficult Web development challenges—ranging from forms to DHTML, browser detection to XML processing, from pattern matching to WMLScript wireless programming, from calendars to embedded audio, and more.
Shows students how to preload and manipulate lists, develop complex mouseovers (e.g., image replacement, rollover functions, preloading, submenus), and to enhance forms and alter and communicate among frames.
Provides in-depth coverage of arrays, main functions, and behaviors.
Shows students the how-to's of managing users and browsers, using regular expressions, security, and XML.
Provides a convenient single-source reference that enables students to work back and forth among advanced techniques and JavaScript basics.
The definitive source for professional JavaScript code.
100+ real-world solutions fully explained.
Advanced JavaScript, Insights and Innovative Techniques provides an arsenal of powerful solutions to your most difficult Web development challenges. Dan Livingston dissects the code created by top JavaScript developers, revealing the tricks of the masters. From hierarchical menus to XML and Macromedia Flash integration, experience the cutting edge of JavaScript and discover the emerging techniques you need to solve real problems.
Advanced JavaScript, Insights and Innovative Techniques covers:
Advanced Javascript Mouseovers
Preface.
1. Mouseovers.
How Rollovers Work. Shelley Biotech. Preloading Images. Mouseovers and Submenus. Mouseovers and Stylesheets. Recap.
Basic Report Making. Advanced Table Configuration.
The Scenario. Multiple Image Maps in HTML. Image Map Information in JavaScript.
Adding to Lists. Switching Between Unordered and Ordered Lists. Inserting Line Items into Specific Positions.
Navigation. Altering Menu Content. The Whole Code.
Copying Text Fields with Checkboxes.
Providing Information. Validating User Data. Validating Credit Card Numbers.
Stylesheet Overview. Classes. Positioning Layers. Modifying HTML Tags. Linking to an External Stylesheet.
The Beginnings of DOM. About Document Objects. The Flavors of DOM. The W3C DOM.
Event History. Event Propagation. Referring to the Event Object.
Palette Man Components. Adding Functionality. Rotating the Colors.
What HierMenus Does. The Arrays.
HM_ScriptDOM. The Main Functions.
Menu Behavior.
Background. Events and Objects. Dragging Code. The Whole Thing.
What Cookies Are. Cookie Parameters. Saving Cookies. Retrieving Cookies. Bill's Cookie Code.
Introduction to Regular Expressions. Creating Regular Expressions. Regular Expression Object Properties. Running Regular Expressions. Testing, Reading, and Replacing Text with Regular Expressions.
Importing and Reading XML. Recap.
What is ActionScript. Calling JavaScript Using getURL. FSCommand.
What FolderTree Does. Creating Folders and Links. Creating Subfolders. Adding Documents/Links.
Displaying the Tree. Drawing the Layers.
Drawing the Tree. Opening and Closing Folders.
The News Scroller.
Sliding Around.
What is XML. Why XML Is Good. Goals of XML. Elements and Nodes. Structure and Syntax. The Special Symbols and Comment. Recap.
ftexample.html. folderTreeLeftFrame.html. startPage.html. defineMyTree.js. fteins4.js. ua.js.
My God, JavaScript in still around. Well, actually JScript, Microsoft's and Internet Explorer's version of JavaScript, is still around. JavaScript, via its attachment to Netscape, is evaporating from the face of the earth. In any case, I always thought JavaScript/JScript would be replaced by something more robust and harder to learn. But it's stuck around: It's grown from dealing with just HTML to manipulating stylesheets to starting to deal with XML objects. It's nice to see this progression in sophistication-I feel like my kid's starting college.
What This Book IsThis book is not for beginners. This book is not a reference guide-you probably already own several of those horse-choking volumes. This book is an attempt to bring together the most useful, most interesting, and latest developments in the JavaScript language in one volume. I hope this book is a tutorial, a cookbook, and an inspiration. We'll look at some of the latest, greatest things you can do with JavaScript, as well as closely examine scripts by some of the JavaScript masters who have unleashed free, wildly popular, and definitely complex scripts.
The goal of this book is to take your JavaScript skills to the next level. We'll look at interesting functions, innovative programming techniques, and what those insane clients really want from us. After absorbing the material in this book, your life will hopefully be easier, you'll be able to build cooler stuff, and you'll make more money doing it.
So let's get started!