|Language:||English, Spanish, German|
|Distribution:||Free* [*Registration needed]|
A lot of work had to be done to maintain the session information between requests for a user.
But with Node. Why use Node. We will have a look into the real worth of Node. Over the years, most of the applications were based on a stateless request-response framework. In these sort of applications, it is up to the developer to ensure the right code was put in place to ensure the state of web session was maintained while the user was working with the system.
The state is maintained, and the either the client or server can start the communication. Features of Node. This is quite different from other programming languages. In other programming languages, the next line of processing would only happen once the entire file is read. But in the case of Node. This is known as a callback function. So what happens here is that the file reading operation will start in the background.
Custom errors, extending Error. Promises chaining. Error handling with promises. Microtasks and event loop. Generators, advanced iteration. Async iteration and generators. Modules, introduction. Dynamic imports. Browser environment, specs.
Node properties: Attributes and properties. Modifying the document. Styles and classes. Element size and scrolling. Window sizes and scrolling.
Introduction into Events. Introduction to browser events. Bubbling and capturing. Event delegation.
Browser default actions. Dispatching custom events. UI Events. Mouse events basics. Drag'n'Drop with mouse events. Forms, controls.
Form properties and methods. Form submission: Document and resource loading. DOMContentLoaded, load, beforeunload, unload. Resource loading: List of extra topics that are not covered by first two parts of tutorial. There is no clear hierarchy here, you can access articles in the order you want.
Frames and windows. Popups and window methods. Cross-window communication. The clickjacking attack.
Binary data, files. ArrayBuffer, binary arrays.
TextDecoder and TextEncoder. Network requests.
This book is suitable for developers from all skill ranges, as it takes care to explain exactly how things work and what to do when you encounter a problem. The books listed in this section will teach you how to write beautiful code.