Category: JavaScript

Number Translation using PHP & JavaScript

Are you having problem with translating numbers to their equivalent signs in different languages? Don’t worry! This post helps you in number translation.

As an example, let’s convert English numbers to Devanagari equivalent and vice versa using PHP & JavaScript.

Easy Face Detection Using JQuery

Face detection is a computer technology being used in a variety of applications that identifies human faces in digital images.

There are a number of approaches and techniques to achieve face detection. In this post, we will be dealing with one of the easiest and simplest way of detecting face in an image, video or canvas using facedetect plugin.

Generate random integer between two numbers using JavaScript

Random number generation is the generation of a sequence of numbers or symbols that cannot be reasonably predicted better than by a random chance, usually through a random-number generator (RNG). Computer random number generators are important in mathematics, cryptography and gambling (on game servers).

In this article, we will be generating a random integer between given two numbers using JavaScript. We will be generating a random number in a given range using JavaScript Math Object.

Drag and Drop ajax file upload using DropzoneJS and PHP

Do you want to implement drag and drop AJAX file upload? It has never been easier. With DropzoneJS and PHP, it is super easy.

DropzoneJS or Dropzone.js is a lightweight open source javascript library that provides drag-and-drop file uploads with image previews.

We will begin this post with basic installation of DropzoneJS. Then, we will do basic file handling on the server. And then finally we will check some important configuration options provided by DropzoneJS.

Introduction to JSON (JavaScript Object Notation)

JSON (JavaScript Object Notation) is an open-standard lightweight data-interchange format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is subset of JavaScript. It uses conventions that are familiar to programmers of the C family of languages like C, C++, C#, Java, JavaScript, Perl, Python.

Introduction to jQuery for the Beginners

jQuery is an extremely popular feature-rich Javascript library that provides many advanced and cross-browser functions that can enhance web applications. It makes repetitive tasks such as element selection, DOM manipulation, event handling, animation, and Ajax much simpler.

Introduction to AJAX

AJAX (Asynchronous JavaScript And XML) is a set of web development techniques using many existing web technologies on the client-side to create asynchronous Web applications. With Ajax, web applications can send data to and retrieve from a server asynchronously without fully reloading the page. XMLHttpRequest (XHR) object is used to communicate with server-side scripts in in a variety of formats like JSON, XML, HTML, and even text files.

JavaScript introduction for the Beginners

JavaScript is the most commonly used scripting language, created for making html-pages live. It is a high-level, dynamic, lightweight, and interpreted programming language. It is used commonly in combination with HTML and CSS.

Generally, JavaScript is used to add dynamic function to HTML. It can do things that HTML cannot do and even can change the HTML dynamically. Furthermore, it can manipulate the HTML itself.