Browse: Home / javascript
By barneyb on December 10, 2008
About four and a half years ago I wrote a little event tracking app that accepts a timestamp and a list of tags, and then provides a pile of ways to report on the data. Think Twitter, except a couple years earlier, and designed for consumption by software, not people, at least at the individual [...]
Posted in ajax, database, development, javascript, tools
By barneyb on November 22, 2008
Yesterday I replaced an instance of my ComboBox widget with a jQuery Autocomplete. A sad day it was. However, I saved a JS file and a few K of download, so it was worth it. Unfortunately, it's missing a fairly important bit of functionality: the ability to order the list of options.
If you're doing an [...]
Posted in ajax, javascript, tools
By barneyb on October 22, 2008
The current state of web applications is a fragmented mess. HTML is still the standard approach, but dynamic data loading with Ajax and application embedding with Flash are both incredibly popular, particularly for data-heavy applications.
HTML is great because it's easy to build and well understood by user agents, but you lack drawing capabilities. SVG addressed [...]
Posted in ajax, flex, javascript, tools
By barneyb on October 20, 2008
I've released FlexChart 2.0 today. Binary download is available here: flexchart_2-0-r4392.zip. The demo app is still available, of course. Backwards compatibility is not quite 100%, as I'll explain below, but the non-compatibilities only affect certain classes of charts, and they're the complex ones. For simple stuff it should be drop-and-go.
There are no real outward changes [...]
Posted in flex, javascript, tools
By barneyb on September 30, 2008
Been a long while since I've made any updates to FlexChart, and this is only a minor one, but it's potentially important. Since it's designed to be used in JavaScript applications, data tips and click events are all processed by JavaScript (not ActionScript). When I'd created the data tip callbacks, I'd neglected to considered the [...]
Posted in flex, javascript, tools
By barneyb on May 12, 2008
Just a little update to my checkbox range selection jQuery plugin to allow chaining. I'd forgotten to return 'this' at the end of the function. Here's the full source, including the mod:
(function($) {
$.fn.enableCheckboxRangeSelection = function() {
var lastCheckbox = null;
var $spec = this;
[...]
Posted in ajax, javascript, tools
By barneyb on May 8, 2008
I needed to convert a couple Array.any() and Array.all() calls (from Prototype) to jQuery syntax. Since jQuery doesn't extend the built-in objects with nice functionality like this, you have to fake it. Here's what I came up with. Old version ('images' is an array):
images.all(function(o){return o.status == "ready";})
and the new version:
jQuery.inArray(false,
jQuery.map(images, [...]
Posted in javascript, tools
By barneyb on May 7, 2008
Since I discovered it a few years ago, I've been a big Prototype fan. It's simple, and gets the job done with a minimum of fuss. It's not without warts, of course. I still occasionally forget to put 'new' in front of Ajax.Request, and some of the Ruby-like methods share their lineage's arcane naming. When [...]
Posted in ajax, development, javascript, tools
By barneyb on April 15, 2008
Ajaxian posted a little blurb on benchmarking Prototype and jQuery today. I've been a Prototype guy for years, but at the office we've gone from all-Prototype to all-jQuery, and performance degredation was one of the things I noticed. I never did any actual benchmarking, just went by feel, but it's interesting to see [...]
Posted in ajax, javascript
By barneyb on January 8, 2008
If any of you use GMail, you'll know that you can shift click the checkboxes on the conversation list to select a range of conversations (i.e. click the second conversation's checkbox and then shift-click the tenth conversation's checkbox). You can also deselect the same way (click the seventh, and then shift-click the fourth). [...]
Posted in javascript, tools