Archive for the ‘white belt’ Category

Error with hashes in IE but not in Firefox

There’s a common error that happens quite a lot on IE only and never on Firefox. You search it, you check all your variables, you comment your code to the bare minimum but you can never find it. Stop looking! Here’s the answer. You probably just forgot a comma (,) at the end of a [...]

Two google-like jquery calendars

Sometimes, it feels to me that javascript was invented for the only purpose of writing calendars to select a date.

Easy loop for every element of an array

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.

Cleanest way of executing javascript code on page load

Everytime that I work on a new project, I’m always unsure about which way to execute javascript on page load.

JavascriptKata now ad free

[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 [...]

Load a page with javascript

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)”

New on Javascript Kata : the echo chamber

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 [...]

A new project – I hate PHP

If you are javascripter, chances are that you must work with some back-end languages like ASP.NET, ColdFusion, Ruby On Rails or PHP. If you work with a back-end language, chances are that you become frustrated against it sometimes. That’s why I created I hate PHP. What is it? I hate PHP helps you to evacuate [...]

3 reasons why I still love Firebug

There was a buzz around Firebug a couple of months ago. A lot of developers installed it and enjoy every second they use it. There are some others that missed the train and are still using alerts to debug. If you’re from that second category, here’s your chance to get back on tracks. 1. The [...]

Ask Dan : Friggin’ libraries

I received two questions about librairies in the Ask Dan a javascript question serie. Don’t forget to ask me your questions too by sending a mail at dan@javascriptkata.com. Effects Camilou asked Is it too hard to a poor mortal like me to achieve that fancy effects that some libraries like Prototype do offer? I mean, [...]