JavaScript for .NET Developers
eBook - ePub

JavaScript for .NET Developers

Ovais Mehboob Ahmed Khan

Partager le livre
  1. 390 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

JavaScript for .NET Developers

Ovais Mehboob Ahmed Khan

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Unlock the potential of evergreen browsers and increase the efficiency of your ASP.NET applications by learning how to write JavaScript

About This Book

  • Boost your skillset and start bringing JavaScript into your web development projects
  • Leverage your existing ASP.NET knowledge to develop dynamic and responsive SPAs
  • Learn effective design patterns for sustainable, and scalable web development

Who This Book Is For

This book is for ASP.NET developers that want to bring JavaScript into their skillset to build applications that are truly dynamic and responsive. It's for developers who are focused on developing for users who want to deliver a great end product and a fantastic experience.

What You Will Learn

  • Get to grips with the basic to advanced concepts of JavaScript
  • Learn how to use JavaScript on server side using Node.js
  • Develop web applications in ASP.NET using JavaScript
  • Get to know with industry-wide best practices and design patterns that provide maintainability and scalability
  • Build an ASP.NET application using Angular 2 with TypeScript and Web API
  • Explore WinJS and see how to use mobile capabilities from web applications
  • Use JavaScript to develop scalable ASP.NET applications
  • See how to test and debug JavaScript

In Detail

If you want to improve responsiveness or the UX in your ASP.NET applications, JavaScript can be a life saver. In an age where server-side operations have shifted to the client, being able to handle JavaScript with confidence and fluency is vital for ASP.NET developers. There's no point trying to fight it, so start learning with this book. Make sure your projects exceed user expectations.

Begin by getting stuck into the basics of JavaScript, and explore the language in the context of ASP.NET Core. You'll then find out how to put the principles into practice, as you learn how to develop a basic ASP.NET application using Angular 2 and TypeScript. You'll also develop essential skills required to develop responsive apps, with a little help from AJAX, ensuring that you're building projects that can be easily accessed across different devices.

With guidance on Node.js and some neat techniques to test and debug a range of JavaScript libraries in Visual Studio, you'll soon be well on your way to combining JavaScript with ASP.NET in a way that's capable of meeting the challenges of modern web development head-on.

Style and approach

This book will build the skillset of every.NET developer, so they can build stronger and more responsive web apps with confidence.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que JavaScript for .NET Developers est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  JavaScript for .NET Developers par Ovais Mehboob Ahmed Khan en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Programmation en JavaScript. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781785886461

JavaScript for .NET Developers


Table of Contents

JavaScript for .NET Developers
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. JavaScript for Modern Web Applications
Importance of JavaScript
What is JavaScript?
Comparing runtimes
Setting up your environment
New editing experience of JavaScript in Visual Studio 2015 IDE
Programming in JavaScript
Core fundamentals of JavaScript
Adding JavaScript to an HTML page
Statements in JavaScript
Literals and variables
Data types
Array in JavaScript
What is JSON?
Simple objects in JSON
Declaring arrays in JSON
Nesting data in JSON
Conversions in data types
Elements of JavaScript
Constants in JavaScript
Comments
Case sensitivity
Character set
Expressions
The this keyword
Sequence of code execution in JavaScript
Using the this keyword on a calling method
The function statement and expression
Class statement and expression
Grouping operator
new
super
Operators
Assignment operators
Arithmetic operators
Unary operators
Comparison operators
Strict equal operator
Strict not equal operator
Logical operators
Logical AND
Logical OR
Logical NOT
Bitwise operators
Bitwise AND
Bitwise OR
Bitwise NOT
Bitwise XOR
Bitwise shift operators
Bitwise left shift
Bitwise right shift
The typeof operator
The void operator
The delete operator
Miscellaneous operators
Conditional operators
Spread operator
Built-in display methods in JavaScript
Displaying messages
Alert box
Confirm box
Prompt box
Writing on a page
Writing into the browser's console window
Browser Object Models in JavaScript
Window
Document
Navigator
Properties
Screen
Properties
History
Methods
Location
Properties
Methods
Summary
2. Advanced JavaScript Concepts
Variables – scope and hoisting
Declaring let
Conditions where let is efficient to use
Functions in loops
Events in JavaScript
Function arguments
Object-oriented programming in JavaScript
Creating objects
Defining objects using object literal notation
Defining objects using a constructor pattern
Using the class keyword
Properties
Defining properties using object literal notation
Defining properties using a constructor pattern
Defining properties using setters/getters in ECMAScript 6
JavaScript property descriptors
Display property descriptors
Managing property descriptors
Using getters and setters
Methods
Defining methods through object literal notation approach
Defining objects using the constructor function approach
Extending properties and methods
Private and public members
Inheritance
Chaining constructors in JavaScript
Inheritance using Object.create()
Predefined properties of Object.create()
Defining inheritance using class
Encapsulation
Abstraction
new.target
Namespace
Exception handling
Error
RangeError
ReferenceError
SyntaxError
TypeError
URIError
Closures
Practical use
JavaScript typed arrays
Typed array architecture
The array buffer
Creating a buffer
Maps, sets, weak maps, and weak sets
Maps and weak maps
Sets and weak sets
The strict mode
Summary
3. Using jQuery in ASP.NET
Getting started with jQuery
Using a content delivery network
The use of CDN
The document ready event
The jQuery selectors
Selecting the DOM elements using the ID
Selecting the DOM elements using TagName
Selecting nodes by the class name
Selecting by the attribute value
Selecting input elements
Selecting all the elements
Selecting the first and last child elements
The contains selector in jQuery
Selecting the even and odd rows selectors
Manipulating DOM
Modifying an element's properties
Creating new elements
Removing elements and attributes
Event handling in jQuery
Registering events in jQuery
Binding events using on and off
Using the hover events
Summary
4. Ajax Techniques
Introducing Ajax
How Ajax works
Ajax requests using the classic XHR object
XHR methods
XHR events
XHR properties
Making an Ajax request using jQuery
jQuery.ajax()
Ajax properties
Pre-filtering Ajax requests
Setting default values for all future Ajax requests
Loading data through the get functions in jQuery
Using jQuery.get()
Using jQuery.getJSON()
Using jQuery.getScript()
Posting data to server using the post function
Ajax events
Local events
Global events
Cross-origin requests
JSON-P
Using JSON-P
CORS
Specifying the CORS policy at services level
Enable CORS at the Configure method
Calling WCF services from JavaScript
Summary
5. Developing an ASP.NET Application Using Angular 2 and Web API
TypeScript
Compilation architecture of TypeScript
Advantages of TypeScript
Superset of JavaScript
Support for classes and modules
Static type checking
ECMAScript 6 feature support
Optional typing
Declaring types in TypeScript
Core elements of TypeScript
Declaring variables
Types
Classes and interfaces
Defining interfaces
Deriving classes and interfaces
Generic classes
Functions
Generic functions
Iterators
Modules and namespaces
Introduction to Angular 2
Angular 2 architecture
Events of component life cycle
Modules
Components
Core properties...

Table des matiĂšres