If I look at my stats, a lot of people are wondering how to write a singleton class. I already wrote about it before but my old solution exposed the instance of the class so more than one instance could be created thus making it not completly a singleton class.
Read the complete article...
In short, you can use private variables when you return another scope when declaring a class.
Read the complete article...
This post is an update from the old post. A lot of things changed since it was written and the information in the old one is a bit outdated.
Read the complete article...
There’s something bugging me with javascript for loop : the extra work to loop though all elements of an array. Suppose I want to alert each element of an array, there are three ways of doing it.
Read the complete article...
Everytime that I work on a new project, I’m always unsure about which way to execute javascript on page load.
Read the complete article...
[Update 2009-09-20 : I will try to bring back ads. I removed them because I was frustrated, I bring them back as an experience.]
JavascriptKata was created in the blog bubble. In a time when all you had to do was to create a blog, put ads on it and you were rich. It never was [...]
Read the complete article...
Someone asked me : “I would like this site to automatically load a certain page (1-31) depending on what day of the month it is (1-31)”
Read the complete article...
I’m a big fan of jQuery. This librarie is just the best and simplest one around. I really noticed it when I wanted to get rid of jQuery in TimmyOnTime and try to use prototype.js instead, just to be more “rails-oriented” (that’s a pretty lame excuse don’t you think?)
Why I didn’t like prototype.js
There was not [...]
Read the complete article...
Since the beginning of the new year, I’m offering to javascripters the echo chamber. What is it? It’s a category where I will post news about what happens in the javascript world. I will try to avoid ajax related news because Ajaxian already does the job really well.
You can subscribe to the RSS feed with [...]
Read the complete article...
From time to time, I receive emails from desperate people who want help with their javascript problem. I also receive a lot of emails of people wanting to help me with my “manly problems”. It’s very nice from them to care about me and I take time to reply to each of them but I [...]
Read the complete article...