ebook img

Single-Page Web Applications: JavaScript End-to-End PDF

433 Pages·2013·4.32 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Single-Page Web Applications: JavaScript End-to-End

JavaScript end-to-end Michael S. Mikowski Josh C. Powell FOREWORD BY Gregory D. Benson M A N N I N G Single Page Web Applications Single Page Web Applications J S - - AVA CRIPT END TO END MICHAEL S. MIKOWSKI JOSH C. POWELL MANNING Shelter Island For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: [email protected] ©2014 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Manning Publications Co. Development editor: Karen Miller 20 Baldwin Road Technical proofreader: John J. Ryan III Shelter Island, NY 11964 Production editor: Janet Vail Copyeditor: Benjamin Berg Proofreader: Toma Mulligan Typesetter: Gordan Salinovic Cover designer: Marija Tudor ISBN 9781617290756 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 18 17 16 15 14 13 To my parents, wife, and children. You have taught me so much, and I love you all. —M.S.M. To my wife, Marianne. Thank you for your extraordinary patience with all the time I took writing the book. I love you. —J.C.P. brief contents P 1 I SPA . .......................................................1 ART NTRODUCING S 1 ■ Our first single page application 3 2 ■ Reintroducing JavaScript 23 P 2 T SPA ...........................................................59 ART HE CLIENT 3 ■ Develop the Shell 61 4 ■ Add feature modules 95 5 ■ Build the Model 139 6 ■ Finish the Model and Data modules 178 P 3 T SPA .........................................................227 ART HE SERVER 7 ■ The web server 229 8 ■ The server database 265 9 ■ Readying our SPA for production 313 vii contents foreword xv preface xvii acknowledgments xviii about this book xx about the cover illlustration xxiv P 1 I SPA ...............................................1 ART NTRODUCING S 1 Our first single page application 3 1.1 Definition, a little history, and some focus 4 A little history 4 ■ What took JavaScript SPAs so long? 5 Our focus 8 1.2 Build our first SPA 9 Define the goal 9 ■ Start the file structure 10 ■ Set up Chrome Developer Tools 10 ■ Develop the HTML and CSS 11 ■ Add the JavaScript 12 ■ Inspect our application using Chrome Developer Tools 17 1.3 The user benefits of a well-written SPA 20 1.4 Summary 21 ix

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.