Archive for the ‘Advanced’ Category

mustache-js

Mustache JS tutorial by jQuery and Express application example. Part 2/2.

Welcome to the 2nd part of Mustache JS and Express tutorial. Today we will finish the work begun in part 1. Mustache JS and jQuery in action So far we’ve discussed the basics of work with Mustache JS library, prepared test data and the server in node.js. Now it’s time to code the front-end layer! […]

mustache-js

Using Mustache JS by jQuery and Express application example. Part 1/2.

In this tutorial we will create a web application using great tools – html5, Bootstrap, jQuery, Mustache JS and Express. Step by step. We will also use the ionicons. Mustache JS Not everyone (including me) likes templating systems in for example PHP. But here the situation is much different! Mustache JS is a JavaScript implementation […]

udontsay-128

Node.js and socket.io tutorial – simple real-time comments

Previously we have written about node.js and socket.io. Today we continue the topic by developing real example. We will create a simple, efficient commenting system between users. Data processing and refreshing the list of comments will be done in real-time, for all users having our web application opened. Node.js and socket.io tutorial Step by step, […]

node-js

Node.js and socket.io – a basic tutorial

Node.js itself is great. Let’s add socket.io and have possibilities, which formerly we could only dream of. Node.js and socket.io After presenting basics of node.js and how to work with databases, it’s time to reach for even more interesting things. One of them certainly is socket.io. Simply establish a connection between our site (front end) […]

nodejs

Node.js and MySQL, couple words about MongoDB

After introduction to node.js it’s time to go with more advanced and practical information. Today we play with communication between node.js and MySQL databases, and also we mention of MongoDB. Node.js and MySQL If we code using e.g. PHP, we should have LAMP installed in our system, so then we have also MySQL. Additionally we […]

file4

Read files in JavaScript and HTML5

Actually I met with this issue for years. However, the modern solutions allow us really to approach this issue in a meaningful way, not related to one specific browser. Read files in JavaScript and HTML5 Among the easiest ways, we can mention loading the file contents via AJAX; in case of jQuery we can use […]

painting

HTML5 Canvas, JavaScript and operations on images

Some time ago we got a small job. The subject: small research and creation of simple on-line editor for images, which should be editable from HTML5 Canvas and JavaScript level. Then the user should be able to save / send the final image. Today we present the basic elements and some examples related to this […]

deeper

Object reflection in JavaScript

Today a small reflection about the object reflection. I’ll try to be concise. Object reflection in JavaScript Reflection of objects is not just a curiosity, but also a tool, which we can meet more often than we think. And it may turn out to be this, what we need when we stuck with some issue. […]

adobe-air-logo

Adobe AIR tutorial: an application to backup files on the server

Some time ago I decided to write a simple application to backup files quickly, and place them on my server. I created with program using Adobe AIR (and PHP for a small backend). Adobe AIR tutorial – creating a real application We will read here, among others, about Drag&Drop, communication with the server, and handle […]

OOP_javascript_object

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