Prototype and Script.Aculo.Us You Never Knew Javascript Could Do This!

Total Page:16

File Type:pdf, Size:1020Kb

Prototype and Script.Aculo.Us You Never Knew Javascript Could Do This! Prototype and script.aculo.us You Never Knew JavaScript Could Do This! Christophe Porteneuve The Pragmatic Bookshelf Raleigh, North Carolina Dallas, Texas Many of the designations used by manufacturers and sellers to distinguish their prod- ucts are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC. Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein. Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://www.pragprog.com Copyright © 2007 The Pragmatic Programmers LLC. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmit- ted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Printed in the United States of America. ISBN-10: 1-934356-01-8 ISBN-13: 978-1-934356-01-2 To Élodie, my love, ever supportive. You’re my true home. Contents Preface 13 1 Introduction 15 1.1 It’s About Time ........................ 15 1.2 What’s in This Book, and How Is It Organized? . 17 1.3 Acknowledgments ...................... 18 I Prototype 20 2 Discovering Prototype 21 2.1 What Is Prototype, and What Is It Not? .......... 21 2.2 Using Prototype in Our Project ............... 22 2.3 What Does Our JavaScript Look Like When Using Prototype? 22 2.4 Prototype Jargon and Concepts .............. 37 2.5 What Are Prototypes Anyway? ............... 39 2.6 Running Prototype Code Samples in This Book . 41 3 Quick Help with the Dollars 42 3.1 Shortcuts Should Be Short ................. 42 3.2 Quick Fetching of Smart Elements with $ . 42 3.3 $w, Because Array Literals Are Boring .......... 44 3.4 $$ Searches with Style ................... 45 3.5 $A, the Collection Unifier .................. 47 3.6 $F Is a Field Expert ..................... 49 3.7 $H Makes a Hash of Things ................. 50 3.8 Handling Ranges with $R .................. 50 4 Regular JavaScript on Steroids 52 4.1 Generic Object Manipulation ................ 52 4.2 Proper Function Binding .................. 58 4.3 Your Functions Actually Know More Tricks . 62 4.4 Numbers ............................ 65 CONTENTS 9 4.5 Strings ............................. 68 4.6 Arrays ............................. 76 4.7 Full-Spectrum JSON Support ............... 82 5 Advanced Collections with Enumerable 88 5.1 The Core Method: Iterating with each ........... 88 5.2 Getting General Information About Our Collection . 91 5.3 Finding Elements and Applying Filters .......... 93 5.4 Grouping Elements and Pasting Collections Together . 95 5.5 Computing a Derived Collection or Value ......... 99 5.6 Order Now: Getting Extreme Values and Using Custom Sorts 102 5.7 Turning Our Collection into an Array or Debugging String104 5.8 Enumerable Is Actually a Module ............. 104 6 Unified Event Handling 108 6.1 Event .............................. 108 6.2 The Events Hall of Fame .................. 125 6.3 Reacting to Form-Related Content Changes . 127 7 Playing with the DOM Is Finally Fun! 130 7.1 Extending DOM Elements .................. 130 7.2 Element, Your New Best Friend .............. 132 7.3 Selector ............................ 167 7.4 Debugging Our DOM-Related Code ............ 168 8 Form Management 173 8.1 Toward a Better User Interface ............... 173 8.2 Looking at Form Fields ................... 177 8.3 Submitting Forms Through Ajax .............. 178 8.4 Keeping an Eye on Forms and Fields ........... 183 9 Ajax Has Never Been So Easy 186 9.1 Before We Start. ...................... 186 9.2 Hitting the Road: Ajax.Request ............... 192 9.3 Streamlining: Ajax.Updater ................. 208 9.4 Polling: Ajax.PeriodicalUpdater ............... 215 9.5 Monitoring Ajax Activity: Ajax.Responders ........ 219 9.6 Debugging Ajax ........................ 219 9.7 Ajax Considered Harmful? Thinking About Accessibility and Ergonomy 220 CONTENTS 10 10 More Useful Helper Objects 225 10.1 Storing Values in a Hash .................. 225 10.2 Expressing Ranges of. Well, Anything You Want! . 230 10.3 Periodical Execution Without Risk of Reentrance . 231 10.4 Templating Made Easy ................... 233 10.5 Examining the Current Browser and Prototype Library . 236 11 Performance Considerations 241 11.1 Element Extension and the $ Function .......... 241 11.2 Iterations vs. Regular Loops ................ 242 11.3 Obsolete Event Handlers .................. 243 11.4 Recent Speed Boosts You Should Know About . 243 11.5 Small Is Beautiful ...................... 244 12 Wrapping Up 245 12.1 Building a Fancy Task List ................. 245 12.2 Laying the Groundwork ................... 246 12.3 It Takes Only 40 Lines: The JavaScript Code . 248 II script.aculo.us 252 13 Discovering script.aculo.us 253 13.1 The Modules of script.aculo.us ............... 253 13.2 Using script.aculo.us in Your Pages ............ 255 14 Visual Effects 257 14.1 What Are Those Effects, and Why Should We Use Them? 257 14.2 Core Effects .......................... 259 14.3 Diving into Effects ...................... 265 14.4 Combined Effects ....................... 269 14.5 Unlocking the Cool Factor: Effect Queues ........ 272 14.6 Effect Helpers ......................... 274 14.7 How to Create Our Own Effects .............. 276 15 Drag and Drop 283 15.1 Dragging Stuff Around .................... 283 15.2 Controlling How It Starts, Where It Goes, & How It Ends 289 15.3 Ghosting ............................ 297 15.4 Dragging and Scrolling ................... 298 15.5 Monitoring Drags ....................... 301 15.6 Dropping Stuff ........................ 301 CONTENTS 11 15.7 Customizing Drop Behavior ................. 302 15.8 Sorting with Drag and Drop ................ 307 15.9 Common Pitfalls ....................... 319 16 Autocompletion 323 16.1 The Basics ........................... 323 16.2 Local Autocompletion .................... 325 16.3 Getting Ajaxy ......................... 330 16.4 Using Rich-Markup Choices ................ 334 16.5 Autocompleting Multiple Values in One Field . 335 16.6 Reacting to Completion with Callbacks .......... 339 17 Building DOM Fragments the Easy Way: Builder 343 17.1 Building Explicitly ...................... 344 17.2 Using an (X)HTML Representation ............. 347 18 In-Place Editing 349 18.1 What’s In-Place Editing Exactly? .............. 349 18.2 A Simple Example ...................... 352 18.3 How Can We Tweak the Ajax Persistence? ........ 354 18.4 Customizing the Appearance ................ 355 18.5 Dealing with Multiple Lines ................. 363 18.6 Editing Alternative Text ................... 364 18.7 Disabling In-Place Editing .................. 367 18.8 Offering a List of Values Instead of Text Typing . 368 19 Sliders 373 19.1 Creating a Simple Slider ................... 374 19.2 Customizing the Basics ................... 376 19.3 Restricting Range or Allowed Values ............ 378 19.4 Tweaking an Existing Slider and Adding Controls . 381 19.5 Defining Multiple Values .................. 381 20 Sound Without Flash 386 20.1 Where Does It Work? ..................... 386 20.2 How Do We Play Sounds? .................. 387 20.3 Playing Multiple Sounds on Multiple Tracks . 387 A Extending and Contributing 391 A.1 Building Over: Classes, Inheritance, and DOM Extension 391 A.2 Contributing! ......................... 398 CONTENTS 12 B Further Reading 411 B.1 Official Websites ....................... 411 B.2 Useful Blogs by Prototype Core Members ......... 411 B.3 JavaScript Masters ...................... 412 B.4 Community and New Sites Around Ajax ......... 413 B.5 ECMAScript Intimacy .................... 413 B.6 Bibliography ......................... 413 C Installing and Using Ruby 414 C.1 On Windows .......................... 415 C.2 On Linux ........................... 415 C.3 On Mac OS X ......................... 416 C.4 Running a Ruby Script ................... 416 C.5 “But I Don’t Know a Thing About Ruby!” ......... 417 Index 418 Preface Prototype began its life in early 2005 at a time when the name “Java- Script” still evoked images of pop-up ads, blinking text, and copied- and-pasted <script> tags in most developers’ minds. Even though web applications such as Gmail and Google Suggest were showing the world that JavaScript (and this new thing called “Ajax”) could actually be used to improve the user experience, implementing these new techniques in your own apps proved to be painful and frustrating. Each web browser had its own quirks to work around, and most existing code wasn’t designed to take advantage of JavaScript’s object-oriented nature or powerful closure capabilities. Inspired by the expressiveness of dynamic languages such as Ruby, we set out to build a browser programming environment that we could actually look forward to using. We started with a small set of tools that let us work with classes and functions. Then we extracted common Ajax and DOM manipulation operations from our existing
Recommended publications
  • Osf Global Services
    romanian software outsourcing index 2013 Catalogue of Romanian Software Outsourcing Companies CONTENT 3 Forward 4 ANIS Overview: Priorities, objectives, projects 5 Outsourcing in Romania - A Plea for the Romanian Software Development and Services Delivery Excellence 7 Geo-distribution of the Romanian IT&C industry 9 Software Outsourcing Company Profiles Forward The vision ANIS is embracing is that of a strong IT sector, leading technolgical innovation while at the same time supporting the growth of the whole economy. We are aiming to promote Romania internationally as a leader for software development, as well as a high-end software and IT services provider. With IT exports lead by sofware outsourcing companies and R&D centers, our advocacy efforts go in assisting these companies in growing their business and expanding their potential, as we are looking forward to a high-value added services and product-based software industry. Andrei Pitis President of ANIS Romania has been a leading player in the software development space and has been ranked at the top of IT outsourcing service providers in the global market by all the major consulting firms since 2005. Outstanding technical skills and a passion for engineering marked in people's genes, a culture of open communication, strong work ethics, great language skills and one of the best developed Internet infrastructures in the world helped Romania become one of the most attractive destinations for the IT outsourcing and software development businesses. More and more software companies develop and grow in Romania for its renowned global delivery service centers and R&D potential. The country's competitiveness has raised awareness not only among European clients, for whom the advantage of operating under the Sorin Gavanescu ANIS Vicepresident - Outsourcing European Union umbrella brings obvious business advantages, but also among more distant markets, such as the US, Canada, Australia and countries in the Middle East who also invested heavily in software outsourcing projects in Romania.
    [Show full text]
  • Bulletin August/September 2006 7/11/16, 1:24 AM
    Bulletin August/September 2006 7/11/16, 1:24 AM sign in contact us site index About ASIS&T Membership Conferences Publications SIGS & Chapters Careers E-Mail Lists ASIS&T - The Information Society for the Go InformationHome > Publications > Age Bulletin > August/September 2006 ARIST Bulletin, August/September 2006 Articles in this Issue Bulletin JASIST The Language of Interaction: Rich Interfaces, Networks Inquiry and Application and Design Patterns Conference Proceedings An Academic's View Digital Library by Austin Govella The IA of Potentiality: Toward a Grounded Online Bookstore Austin Govella is a senior information architect with Satyam's User Theory of Information Architecture Experience Management group in Washington, DC. He writes about IA, UX Philosophy, Theory and Research and design at his blog “Thinking and Making”. Metadata: Practical, Painless, Profitable Alarmists, betting on pestilence, warn pandemics will sweep the globe and Selling Information Architecture: Getting destroy the human race. Germageddon isn't likely. People aren't dominoes Executives to Say "Yes" waiting to be knocked over by disease. We're a vast, global network. Our survival depends on our ability to learn about diseases faster than they We Live Here: Games, Third Places and the Information Architecture of the Future spread. Quarantines illustrate how this works: people learn about and isolate infected populations before they grow. The Language of Interaction: Rich Interfaces, Networks and Design Patterns We didn't survive because we're stronger, faster or heartier. We survived because we talk fast. Designing for Developing Contexts But it's not just about speed. If someone tells you about the latest pox, you Recent Developments in Electronic need two things: you have to speak their language, and you have to hear Resource Management in Libraries enough of what they say to grasp what they mean.
    [Show full text]
  • Collection Titles
    Direct e-Learning Solutions for Today’s Careers CBT Direct’s IT Pro Collection Available: 7476 Collection Titles Coming Soon: 557 .NET 2.0 for Delphi Programmers Architecture Tivoli OMEGAMON XE for DB2 Performance .NET 3.5 CD Audio Player: Create a CD Audio 3D Computer Graphics: A Mathematical Expert on z/OS Player in .NET 3.5 Using WPF and DirectSound Introduction with OpenGL A Field Guide to Digital Color .NET Development for Java Programmers "3D for the Web: Interactive 3D animation using A First Look at Solution Installation for .NET Development Security Solutions 3ds max; Flash and Director " Autonomic Computing .NET Domain-Driven Design with C#: Problem - 3D Game Programming All in One A Guide to Global E-Commerce: Issues to Design - Solution 3D Graphics ReferencePoint Suite Consider When Selling Internationally Over the .NET E-Commerce Programming 3D Modeling in AutoCAD: Creating and Using Internet .NET Enterprise Development in C#: From 3D Models in AutoCAD 2000; 2000i; 2002; A Guide to MATLAB Object-Oriented Design to Deployment Second Edition Programming .NET Enterprise Development in VB.NET: From 3D Programming for Windows: Three- A Guide to Software Configuration Design to Deployment Dimensional Graphics Programming for the Management .NET for Visual FoxPro Developers Windows Presentation Foundation A Guide to Software Package Evaluation and .NET Framework ReferencePoint Suite 3ds max 5 Bible Selection .NET Framework Solutions: In Search of the 3ds max 5 For Dummies A Guide to the Project Management Body of Lost Win32 API
    [Show full text]
  • Orthotic Devices and Shoes – (0543)
    Medical Coverage Policy Effective Date ............................................. 7/15/2021 Next Review Date ....................................... 8/15/2022 Coverage Policy Number .................................. 0543 Orthotic Devices and Shoes Table of Contents Related Coverage Resources Overview .............................................................. 1 Extracorporeal Shock Wave Therapy (ESWT) for Coverage Policy ................................................... 2 Musculoskeletal Conditions and Soft Tissue General Background ............................................ 8 Wounds Medicare Coverage Determinations .................. 20 Foot Care Services Coding/Billing Information .................................. 21 Lumbar Fusion for Spinal Instability and Degenerative Disc Conditions, including Sacroiliac Fusion References ........................................................ 47 Minimally Invasive Spine Surgery Procedures and Trigger Point Injections Percutaneous Vertebroplasty, Kyphoplasty and Sacroplasty Physical Therapy Plantar Fasciitis Treatments Prosthetic Devices Stretch Devices for Joint Stiffness and Contracture Subtalar Arthroereisis INSTRUCTIONS FOR USE The following Coverage Policy applies to health benefit plans administered by Cigna Companies. Certain Cigna Companies and/or lines of business only provide utilization review services to clients and do not make coverage determinations. References to standard benefit plan language and coverage determinations do not apply to those clients. Coverage Policies
    [Show full text]
  • The Ruby Way: Solutions and Techniques in Ruby Programming
    Praise for The Ruby Way, Third Edition “Sticking to its tried and tested formula of cutting right to the techniques the modern day Rubyist needs to know, the latest edition of The Ruby Way keeps its strong reputation going for the latest generation of the Ruby language.” Peter Cooper Editor of Ruby Weekly “The authors’ excellent work and meticulous attention to detail continues in this lat- est update; this book remains an outstanding reference for the beginning Ruby pro- grammer—as well as the seasoned developer who needs a quick refresh on Ruby. Highly recommended for anyone interested in Ruby programming.” Kelvin Meeks Enterprise Architect Praise for Previous Editions of The Ruby Way “Among other things, this book excels at explaining metaprogramming, one of the most interesting aspects of Ruby. Many of the early ideas for Rails were inspired by the first edition, especially what is now Chapter 11. It puts you on a rollercoaster ride between ‘How could I use this?’ and ‘This is so cool!’ Once you get on that roller- coaster, there’s no turning back.” David Heinemeier Hansson Creator of Ruby on Rails, Founder at Basecamp “The appearance of the second edition of this classic book is an exciting event for Rubyists—and for lovers of superb technical writing in general. Hal Fulton brings a lively erudition and an engaging, lucid style to bear on a thorough and meticulously exact exposition of Ruby. You palpably feel the presence of a teacher who knows a tremendous amount and really wants to help you know it too.” David Alan Black Author of The Well-Grounded Rubyist “This is an excellent resource for gaining insight into how and why Ruby works.
    [Show full text]
  • Develop-05 9101 Winter 1991.Pdf
    develop The Apple Technical Journal ASYNCHRONOUS BACKGROUND NETWORKING ON THE MACINTOSH APPLE II Q & A MACINTOSH Q & A SYSTEM 7.0 Q & A THE VETERAN NEOPHYTE DEVELOPER ESSENTIALS: VOLUME 2, ISSUE 1 SCANNING FROM PRODOS PRINT HINTS PALETTE MANAGER ANIMATION THE POWER OF MACINTOSH COMMON LISP Vol.2, Issue 1 Winter 1991 Apple Computer, Inc. E D I T O R I A L Editor in Chief’s Clothing Louella Pizzuti Technical Buckstopper Dave Johnson Managing Editor Monica Meffert Developmental Editors Lorraine Anderson, Judy Bligh, Judy Helfand, Loralee Windsor Editorial Assistant Patti Kemp Copy Editor Toni Haskell Production Manager Hartley Lesser To create the cover, Hal Rucker, Indexer Ira Kleinberg Cleo Huggins, a flashlight, black Manager, Developer Technical Communications construction paper, a lightbulb, a David Krathwohl chair and a whole lot of duct tape came together. A R T & P R O D U C T I O N Design Joss Parsey Technical Illustration J. Goldstein Formatting Bruce Potterton Printing Craftsman Press Film Preparation Aptos Post, Inc. Production PrePress Assembly Photographer Ralph Portillo d e v e l o p, The Apple Technical Journal, is a quarterly publication Circulation Management Dee Kiamy of the Developer Technical Online Production Cassi Carpenter Communications group. R E V I E W B O A R D Pete “Luke” Alexander Larry “Cat Couch” Rosenstein Andy “The Shebanator” Shebanow CONTENTS Asynchronous Background Networking on the Macintosh by Harry Chesley A MacApp class for handling asynchronous network activities, used in an application that propagates messages among machines on the AppleTalk network. 6 Apple II Q & A Answers to your product development questions.
    [Show full text]
  • Pdf for Activity 20
    Version 4.0 Joanna Goode University of Oregon Gail Chapman University of California, Los Angeles © Computer Science Equity Alliance, 2011 Exploring Computer Science 1 Version 4.0 Sponsors & Supporters This curriculum was created under the auspices of the Broadening the Participation in Computing National Science Foundation grant, "Into the Loop: An University K-12 Alliance to Increase and Enhance the Computer Science Learning Opportunities for African-American, Latino/a, and Female Students in the Second Largest School District in the Country". Principal Investigator: Jane Margolis (UCLA); Co-Principal Investigators Joanna Goode (University of Oregon), Todd Ullah (LAUSD), Deborah Estrin (UCLA). The Computing and Data Analysis Unit was created under the auspices of the National Science Foundation Math/Science Partnership grant, "MOBILIZE: Mobilizing for Innovative Computer Science Teaching and Learning." Co-principal Investigators: Deborah Estrin (UCLA, CENS), Mark Hansen (UCLA, CENS), Joanna Goode (University of Oregon, College of Education), Jane Margolis (UCLA, Center X), Thomas Philip (UCLA, Center X), Jody Priselac (UCLA, Center X), and Todd Ullah (LAUSD). Acknowledgments George Benainous, David Bernier, Robb Cutler, Judy Hromcik, Michelle Hutton, John Landa, Clifford Lee, Cueponcaxochitl Moreno, Jean Ryoo, Suzanne Schaefer, Chris Stephenson, Diane Watkins For additional information related to the Exploring Computer Science Partnership visit: www.exploringcs.org Exploring Computer Science 2 Version 4.0 CONTENTS Course Overview ..................................................................................................................................
    [Show full text]
  • Engineering Software for Accessibility Ebook
    PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2009 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number: 2009930292 A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to [email protected]. Microsoft, Microsoft Press, Active Accessibility, MSDN, Silverlight, Win32, Windows, Windows Server, and Windows Vista are either registered trademarks or trademarks of the Microsoft group of companies. Other product and company names mentioned herein may be the trademarks of their respective owners. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions Editor: Ben Ryan Developmental Editor: Devon Musgrave Project Editor: Lynn Finnel Editorial Production: Online Training Solutions, Inc.
    [Show full text]
  • Javascript Everywhere Building Cross-Platform Applications with Graphql, React, React Native, and Electron
    JavaScript Everywhere Building Cross-Platform Applications with GraphQL, React, React Native, and Electron Adam D. Scott Praise for JavaScript Everywhere JavaScript Everywhere is an incredible book that will give you everything you need to build applications with JavaScript on any platform. The title is the truth: JavaScript is everywhere, and this book performs the unique feat of putting everything in context for developers at all levels. Read this book then write code and make technology decisions with confidence. —Eve Porcello, Software Developer and Instructor at Moon Highway JavaScript Everywhere is the perfect companion for navigating the ever-changing modern JavaScript ecosystem. Adam teaches React, React Native, and GraphQL in a clear, approachable way so you can build robust web, mobile, and desktop applications. —Peggy Rayzis, Engineering Manager at Apollo GraphQL JavaScript Everywhere Building Cross-Platform Applications with GraphQL, React, React Native, and Electron Adam D. Scott Beijing Boston Farnham Sebastopol Tokyo JavaScript Everywhere by Adam D. Scott Copyright © 2020 Adam D. Scott. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or [email protected]. Acquisitions Editor: Jennifer Pollock Indexer: WordCo Indexing Services, Inc. Development Editor: Angela Rufino Interior Designer: David Futato Production Editor: Christopher Faucher Cover Designer: Karen Montgomery Copyeditor: Rachel Monaghan Illustrator: Rebecca Demarest Proofreader: Christina Edwards February 2020: First Edition Revision History for the First Edition 2020-02-06: First Release See http://oreilly.com/catalog/errata.csp?isbn=9781492046981 for release details.
    [Show full text]
  • A1. Getting Started: Hello Dojo 1. Hellodojo Style: Style.Css
    A1. Getting Started: Hello Dojo 1. HelloDojo <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Tutorial: Hello Dojo!</title> </head> <body> <h1 id="greeting">Hello</h1> <!-- load Dojo --> <script src="/WebApp/dojo-release-1.10.4/dojo/dojo.js" data-dojo-config="async: true"></script> <script> require([ 'dojo/dom', 'dojo/dom-construct' ], function (dom, domConstruct) { var greetingNode = dom.byId('greeting'); domConstruct.place('<em> Dojo!</em>', greetingNode); }); </script> </body> </html> Style: style.css body { padding:2em; } h1 { margin-bottom:2em; } .add-borders ul, .add-borders li, .add-borders div, .add-borders a { padding: 2px; } .add-borders ul { border: 1px solid red; } .add-borders li { border: 1px solid blue; } .add-borders div { border: 1px solid green; 1 } .add-borders a { border: 1px solid black; } .bold { font-weight: bold; } .italic { font-style: italic; } .highlight { background-color: yellow; } .red { background-color: red; } .blue { background-color: blue; } A2. Getting Started: Configuring Dojo with dojoConfig 1. dojoConfig Programmatic <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo: dojoConfig</title> <link rel="stylesheet" href="../../_common/demo.css" media="screen" type="text/css"> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/claro/claro.css" media="screen"> <style> #dialog { min-width: 200px; } </style> </head> <body class="claro"> <h1>Demo: dojo/_base/Config</h1> <div id="dialog" data-dojo-type="dijit/Dialog" data-dojo-props="title:
    [Show full text]
  • Ultimate++ Forum
    Subject: Let's start - Wikipedia article Nr1.: title and structure Posted by fudadmin on Fri, 28 Jul 2006 13:51:06 GMT View Forum Message <> Reply to Message "Ultimate++ GUI toolkit" ? Other ideas? Structure? Post anything. Then, I expect, we'll get it polished in terms of content and "englishness"... No excuses that you are not a native speaker... Subject: Re: Let's start - Wikipedia article Nr1.: title and structure Posted by fudadmin on Fri, 28 Jul 2006 14:48:30 GMT View Forum Message <> Reply to Message to be edited... Wikipedia article structure comparisons: wxWidgets: * 1 Name change from wxWindows to wxWidgets (no need?) Origins in NTL? * 2 Software that uses wxWidgets Ultimate++ - None? * 3 See also ??? Suggestions? * 4 External links o 4.1 Language bindings Ultimate++ - None? o 4.2 IDE and RAD tool Ultimate++ has (uses) its own IDE called theIDE (- create and link to a separate Wikipedia article?) o 4.3 Reference documentation links to sourceforge: 1. home page 2. ??? forums. Subject: Re: Let's start - Wikipedia article Nr1.: title and structure Posted by fudadmin on Fri, 28 Jul 2006 17:07:00 GMT View Forum Message <> Reply to Message Ok, feel free to comment and improve: http://en.wikipedia.org/wiki/Ultimate%2B%2B Page 1 of 5 ---- Generated from Ultimate++ forum Subject: Re: Let's start - Wikipedia article Nr1.: title and structure Posted by rbmatt on Fri, 28 Jul 2006 17:23:11 GMT View Forum Message <> Reply to Message When we do post the page, we need to change http://en.wikipedia.org/wiki/Widget_toolkit to point to it.
    [Show full text]
  • NYS DMV Motor Vehicle Inspection Regulations
    MOTOR VEHICLE INSPECTION REGULATIONS Effective January 1, 2017 CR-79 (10/18) dmv.ny.gov CONTENTS Introduction..............................................................................................................................................iii Division of Vehicle Safety Services Regional Offices ............................................................................iv Division of Vehicle Safety Services Telephone Directory ......................................................................iv REGULATIONS OF THE COMMISSIONER OF MOTOR VEHICLES PART 79 MOTOR VEHICLE INSPECTION (Statutory Authority: VTL Sections 215, 302, 303) SECTION PAGE 79.1 Definitions (Amended 12/29/10 and 7/01/12) .............................................................................1-4 79.2 Vehicles subject to inspection (Amended 12/29/10 and 7/01/12) ...............................................4-7 79.3 Schedule of inspection (Amended 7/01/12) ................................................................................7 79.4 Inspection information (Amended 12/29/10 and 7/01/12)...........................................................7-8 79.5 Effect of certificate of inspection and effect of inspection rejection notice (Amended 12/29/10) ....8 79.6 Inspection sticker fees..................................................................................................................9 79.7 Official inspection station licenses (Amended 12/29/10, 7/13/11 and 7/01/12) ..........................9-14 79.8 Duties of licensee (Amended 12/29/10)
    [Show full text]