JavaScript


JavaScript, how do I check if this variable is an array

…It is common to run functions that return results in JavaScript. With JavaScript being loosely typed, the returned value can be of any data …

http://idiallo.com/blog/javascript-how-do-i-check-if-this-variable-is-an-array

Published on | Views: 64217

Learning javascript in just 30 days

…Yes, I think it is fair to say that you can learn javascript in just 30 days. At least it did it for me. Not exactly 30 days but it was clos…

http://idiallo.com/blog/learning-javascript-in-just-30-days

Published on | Views: 17232

Tinkering with JavaScript and Canvas

…In my mind, the canvas in JavaScript represented an obscure dungeon that I would never dare to venture in. Many times I attempted but did no…

http://idiallo.com/blog/javascript-canvas

Published on | Views: 11973

Upgrading JavaScript without breaking backwards compatibility

…a language with a not so simple syntax that is supposed to compile back to JavaScript. The selling point is, if you come from a OOP backgrou…

http://idiallo.com/blog/updating-javascript-to-unity3d-implementation

Published on | Views: 8173

Detecting Internet Explorer version with JavaScript

…write specific code for Internet Explorer but I don't like writing in line JavaScript or loading a separate script just for that. I wish bro…

http://idiallo.com/blog/detect-ie-version-with-js

Published on | Views: 43546

Dynamic function definition in JavaScript

…In JavaScript, you worry about whether your code will run on your user's browser. There are two options that I know of that you can use to m…

http://idiallo.com/blog/dynamic-function-definition-in-js

Published on | Views: 21664

Creating a State Stack Engine for your game with JavaScript

…I recently got into designing very small games using Javascript. Working with canvas in the browser helped me appreciate how vast and comple…

http://idiallo.com/blog/javascript-game-state-stack-engine

Published on | Views: 23733

Removing External JavaScript

…My goal was to remove all external JavaScript files from the page and still be modular. After a year of procrastinating I finally got to it …

http://idiallo.com/blog/removing-external-js

Published on | Views: 8176

How to create a Javascript Syntax highlighter

… to read code on a 2 color layout. There are plenty of syntax highlighting JavaScript libraries available to download, but since I also like…

http://idiallo.com/blog/javascript-syntax-highlighter

Published on | Views: 28097

Jquery does that in one line

…jQuery is the holy grail for JavaScript developers. It made everything so much easier. You never have to worry about browser quirks when wri…

http://idiallo.com/blog/jquery-does-that-in-a-line

Published on | Views: 11470

All you need to know about Type coercion in JavaScript

…There are two ways to think of type coercion in JavaScript. One is to the dictionary definition, which is the conversion of values into comm…

http://idiallo.com/javascript/type-coercion-conversion-in-javascript

Published on

Organizing your JavaScript

…Relative to other languages, learning JavaScript is a much easier process. It's easy to use it to add a functionality to your website. For e…

http://idiallo.com/javascript/organizing-your-javascript

Published on

Improving your JavaScript Performance

… be an inferior experience. But despite all this advancement in technology JavaScript is still slow. Faster then before but still slow. Wel…

http://idiallo.com/javascript/improving-performance

Published on

Asynchrounous JavaScript

…If you learn a JavaScript tutorial today, chances are they told you that all the scripts are loaded in the head of the document. Then as you…

http://idiallo.com/javascript/async-js

Published on

Accessing URL parameters in JavaScript

…an example: http://www.example.org/?foo=bar $_GET['foo']; // bar I wish JavaScript had a similar API but we since it doesn't we can creat…

http://idiallo.com/javascript/accessing-url-parameters

Published on

My variables are set to the last index in JavaScript

…JavaScript is known to host some quirky behavior. Most of the time however, all it takes is getting familiar with it to understand what is r…

http://idiallo.com/javascript/variables-always-equal-last-index

Published on

Creating a router in JavaScript for Nodejs

… first. I read the code I wrote in PHP and it made very little sense. Well JavaScript and PHP are a little different so to speak. Mainly whe…

http://idiallo.com/javascript/how-to-create-a-router

Published on

Magical JavaScript Live Collection

…JavaScript live collection is a subject that is rarely talked about. Earlier I had written about a caveat when using them. It did help peopl…

http://idiallo.com/javascript/magical-js-html-live-collection

Published on

How to create DOM elements efficiently with JavaScript

…none by default. But what if you don’t have access to the HTML? Luckily, JavaScript has a convenient method for that. document.createEle…

http://idiallo.com/javascript/create-dom-elements-faster

Published on

Why Use Prototype in JavaScript

…e is a clear reason why you should use prototypes when creating classes in JavaScript. They use less memory. When a method is defined…

http://idiallo.com/javascript/why-use-prototypes

Published on