Posted on December 15, 2008, 17:02, by stefan, under
coding.
When using ExplorerCanvas (excanvas) to emulate the Canvas object in Internet Explorer it might be a good idea to check that the excanvas lib really is loaded before trying to create a context object. If not, an informative error message may be displayed instead of some cryptic “object doesn’t support this property”. Here is a [...]
Posted on October 15, 2008, 9:23, by stefan, under
coding.
Traditional data retrieval (in JSON, XML or whatever) using XMLHttpRequest is limited to requests on the same domain. A way to work around this limitation is to use JSONP. The ‘P’ stands for Padding. The main concept is to dynamically create a script tag and set its source attribute to the URL of the service [...]
Posted on October 14, 2008, 9:45, by stefan, under
coding.
Useful convenience methods for array manipulation in Javascript. Array.indexOf() Find index of given element in array. This method is implemented in some browsers, but not all. if (!Array.prototype.indexOf) { /** * Add array.indexOf() functionality (exists in >FF 1.5 but not in IE) * * @param {Object} elem Element to find. * @param {Number} [from] Position [...]
Posted on May 29, 2008, 23:02, by stefan, under
coding.
AJAX Libraries API currently hosts jQuery, prototype, script.aculo.us, MooTool and dojo.
Posted on May 9, 2008, 22:17, by stefan, under
coding.
John Resig ported the Processing visualization language to JavaScript, using the Canvas element. Get Processing.js. Fancy s*it, in JavaScript!