Writing your own JavaScript without frameworks
Most people today aren’t really writing their own JavaScript, they are just using frameworks such as jQuery, Dojo or YUI. I’ve been doing the same thing for a long time but I have decided it is the...
View ArticleJQuery autosave on click event
What does this simple jQuery snippet do? When you click on the link with class “autosave”, the form with id “autosave” is submitted via POST request to the same page. After that it redirects to the...
View ArticleInteresting jQuery toggling of a loading gif
This is an interesting way to hide/show an AJAX loading gif image. Once an ajax request starts, the div containing the loading image shows up, once the request is done, the div is hidden again. I saw...
View ArticleAre Backbone Models Singletons?
I have been using Backbone (plus couple of other JavaScript libraries) for my last project. One of the first problems I encountered was when setting a model property using defaults keyword which made...
View ArticleHow To Properly Inherit Methods From Prototype
JavaScript is using prototypal inheritance instead of the common class bases inheritance we are all used to from Java or C#. This can be difficult to understand at first. Consider the simple following...
View ArticlePermutation algorithm
You might remember me writing several articles explaining different sorting algorithms. I might come back to that series as there are few sorting algorithms I haven’t gone through. But I wanted to do...
View Article
More Pages to Explore .....