Archive for the ‘Tips’ Category

Compress JavaScript and CSS files

Minimizing / compression of JavaScript and CSS code is often encountered technique used to optimize the loading time by reducing weight of the file. Today we will try to briefly tell about the tools used for this purpose. Compress JavaScript and CSS code Recently someone asked me about it, so we have today’s small article. […]

jQuery tips and tricks

In today’s article we’ll do a small review of interesting jQuery tips. The framework itself gives the programmer a gigantic possibilities, that still can be extended through tricks and best practices. jQuery tips This time we focus more on practice and examples, rather than theory. Tip 1. Determine the size of our document In details, […]

On the borderline — CSS and JavaScript

Working with JavaScript often is associated with CSS. And thanks to that, we can acquire practice in the use of CSS, even if we don’t deal directly with creating layouts. CSS and JavaScript Good CSS skill broadens our horizons, and helps in developing quick solutions and tricks. CSS For a good start — rotate an […]

Date and time functions in JavaScript

Today we take a closer look at ready-made tools to assist us in working with date and time. So libraries with functions to operate on date and time in JavaScript; formating, parsing, comparing, etc. We already talked about basics of date and time functinos in JavaScript here. Now we turn to the more advanced tools. […]

HTML5 short course — part 1

Welcome to HTML5 short course — in a nutshell. We tried to prepare a quick course about HTML5 (and the use of JavaScript in its context), containing key information in one place. The case was somewhat complicated by the fact that the subject is quite extensive. But we can handle! HTML5 short course HTML5 is […]

JavaScript file

PHP functions in JavaScript — the php.js library

In this short article we want to present a very interesting library — php.js. PHP functions in JavaScript thanks to the php.js library The library allows the programmer to use the functions known from PHP in JavaScript, by implementing their capabilities and syntax. Of course it’s about equivalents of PHP functions, implemented in JavaScript. The […]

jQuery course — AJAX, examples, and a summary

Here we have the 3rd part of jQuery course. Further exploring of jQuery possibilities Today we briefly describe programming Ajax elements, using jQuery. We show also some interesting examples and tips jQuery, and finally mention about jQuery UI. The jQuery gives us a high level of abstraction, with a rich support for Ajax. So the […]

Prototype JS Framework in a nutshell. Part 1.

Here is the first part of the short courses, describing JavaScript frameworks. The first of these will be Prototype JS. Prototype JS Framework — from scratch A little bit of preliminary information appears in the article JavaScript Frameworks — foreword. The purpose of this article is not to replace the documentation, but the description of […]

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 […]