Custom cover image
Custom cover image

Pro Single Page Application Development : Using Backbone.js and ASP.NET / by Gil Fink, Ido Flatow

By: Contributor(s): Resource type: Ressourcentyp: Buch (Online)Book (Online)Language: English Series: SpringerLink BücherPublisher: Berkeley, CA ; s.l. : Apress, 2014Description: Online-Ressource (XX, 324 p. 69 illus, online resource)ISBN:
  • 9781430266747
Subject(s): Additional physical formats: 9781430266730 | Erscheint auch als: 978-143-026-673-0 Druck-Ausgabe | Erscheint auch als: Pro single page application development. Druck-Ausgabe New York, NY : Apress/Springer, 2014. XXV, 295 S.DDC classification:
  • 006.7
  • 004
RVK: RVK: ST 250 | ST 253LOC classification:
  • QA75.5-76.95
DOI: DOI: 10.1007/978-1-4302-6674-7Online resources:
Contents:
Contents at a Glance; Introduction; Part I: The Road to Single Page Application Development; Chapter 1: Introducing Single Page Applications; How the Web Has Evolved; The Ajax Revolution; HTML5 and JavaScript; The Mobile Web and JavaScript; JavaScript Preprocessors; Comparing Application Types; Traditional Web Applications; Native Applications; So What Is an SPA?; Why SPA Development?; Summary; Chapter 2: JavaScript for SPAs; A Little JavaScript History; Functions in JavaScript; The arguments Object; Anonymous Functions; Nested Functions; JavaScript Scope; The Global Scope; Function Scope
Immediate Function Execution ExpressionsWorking with Object-Oriented JavaScript; Literal Object Notation; The new Notation and Constructor Functions; The Object Base Type; The Object.create Function; JavaScript Prototype Inheritance; The this Keyword; Creating JavaScript Namespaces; Closures and Encapsulation; JSON; ECMAScript and Its Impact on Future Code; ECMAScript 5 Highlighted Features; ECMAScript 6; New Language Syntax; Classes, Modules, and More; Summary; Chapter 3: Modular JavaScript Development; The Façade Pattern in JavaScript; Modules to the Rescue
Different Options to Create JavaScript ModulesPrototype Pattern; Module Pattern; Revealing Module Pattern; Revealing Prototype Pattern; What Is the Asynchronous Module Definition?; The async and defer Attributes; AMD; The RequireJS Library; The data-main Attribute; The config Function; Paths; Shim; Defining Modules Using RequireJS; Using the require Function; Summary; Chapter 4: SPA Concepts and Architecture; Main SPA Building Blocks; JavaScript Libraries; MV* in the Front End; MVC; MVVM; The Roles of MV* Frameworks in SPAs; Routing in an SPA; The # Sign Role in Routing
Leveraging HTML5 JavaScript APIsOffline Web Applications and Storages; Web Storage; IndexedDB; Application Cache; Connectivity; Performance; Client-Side Template Engines; Underscore as a Template Engine Example; Server Back End API and REST; SPA Architecture; Summary; Part II: Building the Front End; Chapter 5: Getting Started with Backbone.js; What Is Backbone.js?; Models; Defining a Model; Model APIs; Model Validation; Model Events; Views; Defining a View; Rendering the View; Collections; Collection APIs; Underscore.js Collection Functions; Collection Events; Events; The Events API
listenTo and stopListeningView Events; Routing; Configuring Routes; Router APIs; Backbone History; Routing and Views; Handling Zombie Views; Creating an Application Controller; Backbone.js and RequireJS; Summary; Chapter 6: Creating a Single Page Application Step by Step; Choosing an IDE; Preparing the Solution Folders; Creating the Solution Folder Structure; Adding the JavaScript Libraries; Adding the HTML Page, Application Main Script, Styles, and Images; Crafting the Models; Agent Model Implementation; Task Model Implementation; Adding Collections; The Agent Collection; The Task Collection
Creating a Data Service and Generating Mock Data
Summary: This book discusses using single page applications (SPA) in Web development. The use of SPA allows the user to load a Web site once and all the interactivity is handled fluidly by a rich JavaScript front end. Part I lays the groundwork for SPA development, including SPA architecture, JavaScript development techniques, modules, routing, and MV* frameworks; part II covers building the client for the application and using the Backbone.js library; part III covers the process of building the server side of the application using ASP.NET Web API, and hooking up the two parts of the application to create a working whole. The book also discusses tracking history, user interface performance, and how to handle search engine optimization. This book is for Web developers familiar with HTML, JavaScript, .NET and C#Summary: One of the most important and exciting trends in web development in recent years is the move towards single page applications, or SPAs. Instead of clicking through hyperlinks and waiting for each page to load, the user loads a site once and all the interactivity is handled fluidly by a rich JavaScript front end. If you come from a background in ASP.NET development, you’ll be used to handling most interactions on the server side. Pro Single Page Application Development will guide you through your transition to this powerful new application type. The book starts in Part I by laying the groundwork for SPA development. You’ll master some JavaScript techniques that will come in useful later on, and get to know the building blocks of a single page application, including modules, routing and MV* frameworks. In Part II, you’ll build the client for your application. This is where the magic happens, as the authors take you through the process step by step. Backbone.js is the ideal library for demonstrating SPA development in practice, but you can apply the same principles with other frameworks in your future applications. Part III takes you through the process of building the server side of your application using ASP.NET Web API, and hooking up the two parts of your application to create a working whole. SPA development also comes with its own particular challenges, including tracking history, user interface performance, and how to handle search engine optimization. In the final chapters, the authors guide you through some of these issues and advanced techniques and finish by showing you how to deploy your application. As SPAs become the de facto standard of web application development, the in-depth Pro Single Page Application Development will be your one-stop shop for creating fluid, modern applications on the webPPN: PPN: 1657873234Package identifier: Produktsigel: ZDB-2-CWD
No physical items for this record