Posted on June 14, 2007, 10:27 am, by Dan, under
white belt.
Some of you might know that I have worked with Frank Lamontagne of Ruby Fleebie on a project called Ecstatik!. That was the beginning of something. Now, we are very pleased to announce you our new project : TimmyOnTime. What is TimmyOnTime? TimmyOnTime is a IM-based time management tool. To use it, you only need [...]
Since the beginning of Ask Dan a javascript question, I received a bunch of questions. Here’s the first one I received. It’s from Andrew Worcester. There seems (to me anyway) to be an overuse of the “new” syntax in libraries. If I create an Ajax object is there a functional benefit to using: “new Ajax.Request(options)” [...]
These days, you can’t write a web application without using one of the billionth javascript library. Two of them stood out of the crowd : prototype and jQuery. I will explain why did I choose jQuery. Prototype Prototype is comfortably installed in a lot of developers mind because of two reasons : it was the [...]
Posted on May 24, 2007, 8:39 am, by Dan, under
white belt.
It always happens : you have some calculation to do with a date and you forget to calculate those friggin’ leap years. Here’s how to do it cleanly. The first way Almost every one use this simple rule : if it’s divisible by 4, it’s a leap year. So the code is var isLeap = [...]
First of all, since I made the front page of Ajaxian, a lot of new readers joined in. Welcome to all of you. I would also take a moment to explain that Javascript Kata is a technical blog about javascript and though I will talk here and there about ajax, it is not focused on [...]
Picture yourself on a beautiful beach on a warm day. The sounds of the waves is music to your hears. You’re on a comfortable chair with a laptop on your knees connected via an incredible WiFi. You’re using a brand new web2.0 application that must be the gratest web site on the web. Then, you [...]
When I began with object-oriented javascript, I always saw a self here and there without fully understanding what it meant. Self? When you see self in some object-oriented javascript, it’s just mean that the developer is using a closure that will reference the current object via a variable named self. Because self is a variable, [...]
Posted on May 10, 2007, 9:02 am, by Dan, under
white belt.
Frank (of Ruby Fleebie) and I have been busy lately. We worked together on a project called Ecstatik! What is Ecstatik!? Ecstatik! is a project that caused Frank and I to be busy lately. But it’s not just that. Ecstatik! is a digg-like for funny stuff. No more than that. We didn’t want to make [...]
UPDATE : This was written more than 2 years ago, read the new post on How to use JSON. Web2.0 came with the intensive use of the XMLHttpRequest object even if it was already in our browser before then. A lot of format were tried but JSON will be the winner overall. What is JSON? [...]
Posted on May 1, 2007, 8:18 am, by Dan, under
white belt.
This trick is not known by everyone though it is really simple. The address bar In the address bar, you simply write javascript:/*some javascript code here*/;void(0); As easy as that. In fact, it’s the same thing as creating a link that executes some javascript code. <a href=”javascript:alert(‘Some code from a link’);”>Execute code from javascript</a> The [...]