Practical Prototype and script.aculo.us (eBook)

(Autor)

eBook Download: PDF
2008 | 1st ed.
352 Seiten
Apress (Verlag)
978-1-4302-0502-9 (ISBN)

Lese- und Medienproben

Practical Prototype and script.aculo.us - Andrew Dupont
Systemvoraussetzungen
35,30 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

In this book, Prototype Core development team member Andrew Dupont provides you with an essential guide to getting the most out of using Prototype and script.aculo.us. He will help you leverage these popular and well-supported JavaScript libraries to enhance your day-to-day work, speeding up mundane tasks and providing advanced UI effects in a way that is cross-browser compliant. The book examines the different time-saving functions and features Prototype provides and covers how it extends the basic JavaScript objects, including events, Ajax techniques, DOM elements, enumerables, and advanced OOP.



Andrew Dupont is a web designer and developer living and working in Austin, Texas. He is a member of Prototype Core, the team that collaborates on the Prototype JavaScript Framework.
As a JavaScript developer, you will already be aware of some of the time saving, convenience, and functionality provided to you by JavaScript/Ajax libraries in general. Prototype and its sister effects library, script.aculo.us, are among the most popular and best–supported JavaScript libraries, and now Prototype Core team member Andrew Dupont has written this book to provide you with an essential guide to getting the most out of using Prototype and script.aculo.us.Practical Prototype and script.aculo.us will help you leverage the Prototype and script.aculo.us libraries to enhance your day–to–day work, speeding up mundane tasks and providing advanced user interface effects in a way that is cross–browser compliant—taking many worries off your shoulders. Take a whirlwind tour of the different time–saving functions and features Prototype provides and how it extends the basic JavaScript objects, including events, Ajax techniques, DOM elements, enumerables, and advanced object-oriented programming. Understand how script.aculo.us fits into the wider world of DOM Scripting/DHTML; find out how to use it to enhance your user interfaces quickly and effectively, with UI controls, effects, and drag and drop; and discover Prototype and script.aculo.us as a platform.The author avoids needless theory and rhetoric throughout the book, moving you through the topics at a fast pace. He incorporates several real–world examples to help you gain valuable practical experience as you learn. Practical Prototype and script.aculo.us is completely up to date and features server–side examples written in PHP that show the framework can be used effectively in more environments than just Ruby on Rails. Master all the convenience functions of Prototype to speed up your JavaScript/Ajax development Leverage script.aculo.us to turbo charge your dynamic UIs Learn from JavaScript expert Andrew Dupont, one of the Prototype Core team members

Andrew Dupont is a web designer and developer living and working in Austin, Texas. He is a member of Prototype Core, the team that collaborates on the Prototype JavaScript Framework.

Contents at a Glance 4
Contents 5
About the Author 12
About the Technical Reviewer 13
Acknowledgments 14
Introduction 15
Prototype 16
What You Should Know About Prototype, JavaScript, and the DOM 17
About JavaScript 17
About the DOM 22
About This Book 23
About Prototype 24
Summary 30
Prototype Basics 31
Getting Started 31
The $ Function 32
Object. extend: Painless Object Merging 35
$ A: Coercing Collections into Arrays 38
$$: Complex Node Queries 40
Summary 43
Collections (Or, Never Write a for Loop Again) 44
The Traditional for Loop 44
Functional Programming 45
Prototype’s Enumerable Object 47
Finding Needles in Haystacks: detect, select, reject, and partition 48
Sorting Collections: min, max, and sortBy 49
Advanced Enumeration: map, inject, invoke, and pluck 51
Other Collections That Use Enumerable 54
Summary 61
Ajax: Advanced Client/Server Communication 62
Ajax Rocks 62
Ajax Sucks 63
Prototype’s Ajax Object 63
Advanced Examples: Working with Dynamic Content 75
Summary 102
Events 103
State of the Browser ( Or, How We Got Here) 103
Events: The Crash Course 106
Events and Forms 114
Custom Events 120
Summary 123
Working with the DOM 124
About the DOM API 124
Node Genealogy 124
Prototype’s DOM Extensions 126
Putting It Together 146
Summary 148
Advanced JavaScript: Functional Programming and Class- Based OOP 149
Object- Oriented JavaScript Programming with Prototype 149
Functional Programming 168
Summary 175
Other Helpful Things: Useful Methods on Built-Ins 176
Using String Methods 176
Using JSON 189
Using Object Methods 193
Using Array Methods 197
Summary 198
script.aculo.us 199
What You Should Know About DHTML and script. aculo. us 200
Introducing the CSS Box Model 200
Introducing script. aculo. us 215
Getting Started with script. aculo. us 216
Summary 220
Introduction to script.aculo.us Effects 221
What Are Effects? 221
Why Effects? 221
The Basics of Effects 223
script. aculo. us Effects 226
Putting It All Together 250
Summary 261
Enabling Draggables, Droppables, and Sortables 262
Exploring Draggables 262
Exploring Droppables 269
Exploring Sortables 275
Summary 280
Advanced Controls: Autocompleters, In- Place Editors, and Sliders 281
Adding Autocomplete Functionality 281
Adding In- Place Editing Functionality 291
Adding Sliders 297
Summary 300
Prototype As a Platform 301
Using Code Patterns 301
Solving Browser Compatibility Problems: To Sniff or Not to Sniff? 309
Making and Sharing a Library 314
Summary 318
Index 319

Erscheint lt. Verlag 17.8.2008
Zusatzinfo 352 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Web / Internet
Schlagworte AJAX • Browser • Dom • Framework • Functional Programming • JavaScript • object-oriented programming • PHP • Ruby • Ruby On Rails
ISBN-10 1-4302-0502-4 / 1430205024
ISBN-13 978-1-4302-0502-9 / 9781430205029
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 3,6 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Ausbildung und Beruf

von Vivian Pein

eBook Download (2024)
Rheinwerk Computing (Verlag)
29,90