Home » JavaScript » Page 58

JavaScript

Learning Angular: What is the scope of your directive?

This might create quite some debugging headaches, especially in a larger application. Things don’t bind properly, have different data on the scope than you’d expect etc.. When you define your directives, you have to be really careful about their scope. This article is part of my “Learning NG” series, presenting some of my adventures while learning Angular. Check out the ...

Read More »

Make Me a Promise

If you haven’t worked with JavaScript in over a decade, you might be surprised at the advances that have been made in this language. At one time, JavaScript was used mainly for swapping “one image for another in response to user-generated mouse events” [1], and now, it is a full-fledged language used for both front end and back end work. ...

Read More »

JavaScript Document Ready Example

“Document ready” is a technique widely used by everyone who uses JavaScript or jQuery in their code, yet only a few people know exactly why it is used. Primarily, it is used to make sure that all your external scripts are loaded properly. Other reasons to use it are for having unobtrusive JavaScript and separation of concerns. Another perk is ...

Read More »

AngularJS UI-Router – Introduction

This is the first post of a series of 3, presenting AngularJS UI-Router library: Part 1: Introduction Part 2: Components AngularJS UI-Router – Example         Introduction AngularJS is a well-known Javascript framework nowadays. It provides a great support to create SPA (Single Page Applications), easing some of the tedious stuff needed when writing client-side Javascript applications (boilerplate ...

Read More »

JQuery Autocomplete Widget Example

By now everyone who has used a search engine has experienced auto-complete functionality at work. Originally intended to help those with physical limitations reduce the need for keyboard input, it has become commonplace on nearly every input element across a variety of software. In this article we will look at the details of the JQuery Autocomplete widget; how to implement ...

Read More »

JavaScript For Loop Example

We hear a lot about loops, especially ” for loop “. So what, in fact, are they? They’re just pieces of code that repeat the same commands several times, until you reach a desired conclusion, without getting you bored out of your mind, repeating your code. This is how we JavaScript guys do it. Syntax You will definitely have to ...

Read More »

Rule Engine for Node.js

Based on my original blog posting, this posting introduces a ported Javascript version of my rule engine, for Node.js. I have the requirement to use a rule engine. I want something light weight and fairly simple, yet powerful. While there are products out there which are super good, I don’t want something with the big learning overhead. And, I fancied ...

Read More »