Programacion Con Dojo

Páginas: 385 (96061 palabras) Publicado: 16 de febrero de 2013
Dojo
Using the Dojo JavaScript Library to Build Ajax Applications

James E. Harmon

Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Cape Town • Sydney • Tokyo • Singapore • Mexico City

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where thosedesignations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental orconsequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information,please contact: U.S. Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United States please contact: International Sales international@pearson.com Visit us on the Web: www.informit.com/aw Library of Congress Cataloging-in-Publication Data Harmon, James Earl. Using the Dojo Javascript library to build Ajax applications / James Earl Harmon. p. cm.Includes index. ISBN 0-13-235804-2 (pbk. : alk. paper) 1. Ajax (Web site development technology) 2. Java (Computer program language) I. Title. TK5105.8885.A52H37 2008 006.7’8—dc22 2008021544 Copyright © 2009 Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to anyprohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to: Pearson Education, Inc Rights and Contracts Department 501 Boylston Street, Suite 900 Boston, MA 02116 Fax (617) 671 3447 ISBN-13: 978-0-132-35804-0 ISBN-10: 0-132-35804-2 Text printed inthe United States on recycled paper at R.R. Donnelley in Crawfordsville, Indiana. First printing June 2008

Associate Publisher Mark Taub Acquisitions Editor Debra Williams Cauley Development Editor Michael Thurston Managing Editor Kristy Hart Project Editor Chelsey Marti Copy Editor Language Logistics Indexer Lisa Stumpf Proofreader Kathy Ruiz Technical Reviewer Eric Foster-Johnson PublishingCoordinator Kim Boedigheimer Cover Designer Gary Adair Senior Compositor Gloria Schurick

Contents at a Glance
Foreword
xiii xv xvi

Acknowledgments About the Author I: A Dojo Tutorial

1 Understanding Dojo: A Tutorial

3 25 35

2 Using Dojo for Client-side Validation 3 Using Dojo to Work with the Server 4 Using Dojo Widgets 51 59

5 Processing Forms with Dojo

II: Dojo Widgets
6 Introduction to DojoWidgets 7 Dojo Form Widgets 8 Dojo Layout Widgets 91 137 155 67

9 Other Specialized Dojo Widgets

III: Dojo in Detail
10 What Is Dojo? 189 199

11 Technical Description of Dojo 12 Objects and Classes 13 Strings and JSON 223

239 249

14 Events and Event Handling 15 Ajax Remoting 259 277 293

16 Working with the DOM 17 Testing and Debugging

Index

303

Table of Contents
Foreword xiii xv xviAcknowledgments About the Author

I: A Dojo Tutorial
1 Understanding Dojo: A Tutorial
1.1 Introduction to the Tutorial 1.1.1 Goals for this Tutorial 1.1.2 Goals for Using Dojo 1.2.1 First and Last Name 1.2.2 User Name 1.2.4 Address 1.2.5 State 1.2.6 City 8 10 10 11 11 12 12 13 13 13 8 7 8 1.2.3 Email Address 3 4 4 5 6

3

1.2 A Standard HTML Data Entry Form

1.2.7 Zip Code 1.2.9 Comments

1.2.8...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • DOJO
  • Analogía Del "Dōjō"
  • Death In Dojo
  • Programacion
  • Programacion
  • Programacion
  • Programacion
  • Programacion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS