Posts Tagged ‘objects’


HTML5 Canvas and JavaScript. Introduction.

Introduction to HTML5 we start by one of the most important elements, namely HTML5 Canvas. We’ll talk briefly about programming in JavaScript in the context of the Canvas element (and other elements in further articles). HTML5 Canvas HTML5 gives us many new opportunities, including the new Canvas element, which is part of the HTML5 specification. […]


jQuery – DOM, events and effects. Part 2.

Here we go with the second part of jQuery basics, in which we describe the visual effects, DOM operations and events handling using this library. Getting deeper in jQuery Let’s start with the basics of visual effects. There are main methods for elements visibility: show() – causes dynamic showing of hidden element. As arguments can […]


JSON format and JavaScript

Welcome to the new article. We touch various topics, and now we feel obliged to write about JSON (JavaScript Object Notation). It is a lightweight computer data interchange format. JSON is a text format, and you can treat it as a subset of JavaScript. JSON format in JavaScript The MIME type for JSON format is […]


Testing code and handling errors in JavaScript

Debug it! In this article we will take a look on testing the code and error handling in JavaScript. Handling errors in JavaScript At the beginning would have to say a few words about the need for testing. We need to test everything! Preferably at each stage of creating the code. And we must take […]

JavaScript file

Forms in JavaScript

So far, we have described a number of different topics, and now it’s time for an article about forms in JavaScript. Forms, especially in combination with CSS and JavaScript, are providing a strong foundation for development of UI elements to interact with the user. Forms in JavaScript Handling forms in JavaScript from scratch. The form […]


Basics of AJAX

Welcome to the next article where we will discuss the basics of this, what changed JavaScript for ever. Basics of AJAX The AJAX (Asynchronous JavaScript and XML) – is a technology of web application development, in which the user can interact with the server without reloading the entire document. Operations are done asynchronously. AJAX technology […]


Cookies in JavaScript

In this article we will talk about working with cookies in JavaScript. And no, it’s not about eating. Working with cookies in JavaScript Cookies – small information sent by a web server and stored on the user side (typically on the hard disk). Cookies are most commonly used for counters, probes, online stores, sites that […]


Math, numbers, calculations. The Math object in JavaScript.

Well, other JavaScript objects we have discussed already, or we will discuss in next articles. Today we will focus on numbers and the Number object in JavaScript, take a look closer at calculations and Math object in JavaScript. JavaScript Number Object It is a primary object to handle numbers, and has properties for numerical constants: […]


OOP in JavaScript part 2. Summary.

Part 2. of the OOP in JavaScript. Today we will show some more advanced examples. OOP in JavaScript – techniques For a good start, let’s take a closer look at arrays. Arrays as objects A simple array, e.g.: can be written in a concise form: And certainly we can operate on arrays in the same […]


Object-oriented programming in JavaScript. OOP part 1.

Welcome to the first part of the articles about object-oriented programming (OOP) in JavaScript. It is actually necessary to explore of the language secrets. Object-oriented programming in JavaScript JavaScript is an object-oriented language, although there is a lack of certain elements typical for object-oriented languages, at least in the current implementations of JavaScript. But let’s […]