Read more

Rate Limiting with JavaScript

Sometimes you need to be alerted when some event or action happens, but the event or action could happen multiple times in quick succession. A perfect example of this is window.onscroll. The window.onscroll event fires entirely too much. Not only that, it fires inconsistently across browsers. This has been talked about before. Here, I offer a solution:

Read the rest of this entry »

Read more

DojoML - The best thing since sliced bread!

Have you ever found a widget that does almost *everything* you need, yet you still manage to find some small thing that needs to be done differently? Ever cringe at the thought of having to extend a widget to add 5 or 10 lines of code to it? In the past, thats what you had to do… well unless you were really gung-ho and wanted to write your own from scratch.
Read the rest of this entry »

Read more

Making your own dojo.connects

The first time I read the manual pages for dojo.connect, I didn’t realize how powerful dojo.connect really is. For a long time I have used it effectively to connect to mouse clicks and other events but there are way more powerful features than those.
Read the rest of this entry »