In this post I’ll share three might-come-in-handy javascript techniques I often use. These techniques are: using the javascript ‘with’ keyword, using the ‘String.indexOf’ function to shorten if conditions, and using the ‘arguments’ array to get a better understanding of how (undocumented) functions work.
Sorry for all those waiting on the next release of Plotr. Tomorrow I’m leaving the Netherlands for a summer holiday in Turkey for 11 days. There have been so many changes to the Plotr code that I couldn’t test it in all browsers. That’s the reason I’m not releasing Plotr yet. But for those interested, I created a configuration tool. You can use this web app to stylize charts, and then generate the code. As you’ll see the options are changed, Plotr 0.3.0 is not(!) backwards compatible.
“The dollar sign ($) and the underscore (_) are permitted anywhere in an identifier. The dollar sign is intended for use only in mechanically generated code” (page 14 Ecma-262).
It took some time but now I finally can release Plotr v0.2.0. For those who don’t know what Plotr is, Plotr is a javascript charting framework built on top of PrototypeJS. This version includes many bug fixes and some new features, like drawing shadows and showing legends.
Well, it’s been a while since my last post. I couldn’t find any interesting subjects to write about. Anyway, today I’ll write about sorting arrays. I’ll start with sorting arrays numerically and alphabetically, to introduce you some basic techniques.
Lately I got a lot of questions (comments/emails) from people who have problems with getting their javascripts working. I really enjoy it when I can help other people with such things, but I’m a very busy man. So this article’ll be about getting help from javascript specialists.
Thomas Baumgartner has a nice example to make horizontal accordions work in Mootools v1.0.
HistMan is a script that let’s you manage browser history (back/forward buttons) and bookmarking in Ajax applications using Mootools. My aim is to deliver a small and efficient framework that’s easily ported to frameworks other than Mootools.
A week ago Joe Walker posted a note on the insecurity of JSON. I’m using JSON for almost anything so I was shocked a bit by his findings.