Saturday, March 11th, 2006

JSONRequest: Proposal for Cross-Domain Browser Service

Category: JavaScript, Remoting

Douglas Crockford, creator of JSON, has proposed that browsers include a new “JSONRequest” service to allow for safe cross-domain calls. JSONRequest is a service which encodes a JavaScript value as a JSON text, does an HTTP POST of that text, gets the response, and parses the response into a JavaScript value. If the parse was Read the rest…

Posted by Michael Mahemoff at 5:00 pm

3.6 rating from 25 votes

Friday, March 10th, 2006

Post-Processing Javascript

Category: JavaScript

Do you post-process your Javascript? Are you an obfuscator, minifier, or gzipper? Douglas Crockford discusses these three forms of post-processing. Minifying A minifier removes the comments and unnecessary whitespace from a program. Depending on how the program is written, this can reduce the size by about half. Obfuscating An obfuscator also minifies, but it will Read the rest…

Posted by Michael Mahemoff at 6:17 am

3.8 rating from 32 votes

Thursday, March 9th, 2006

Eliminating redisplay flashes in JavaScript

Category: Articles, JavaScript, Tip

Patrick Fitzgerald has written up his technique for eliminating redisplay flashes in JavaScript. We all see this problem in various scenarios. Nice semantic HTML comes down before the CSS/JS has styled it. For a split second you see the ugly style before the true style is applied. Your first thought might be “I’ll just add Read the rest…

Posted by Dion Almaer at 11:13 am

3.4 rating from 22 votes

Wednesday, March 8th, 2006

A (Re)Introduction to JavaScript

Category: Ajax, Articles, JavaScript, Presentation, Programming

Simon Willison has posted the complete slides (low quality) (higher quality via flickr) to a three hour tutorial he gave at ETech on JavaScript. It looks very thorough with over 100 slides, starting out with the basic syntax and types and working up to objects and first-order functions. He also has made his notes available Read the rest…

Posted by Rob Sanheim at 11:38 pm

3.8 rating from 33 votes

Tuesday, March 7th, 2006

Turbo Time: TurboWidgets and TurboDbAdmin Released

Category: Dojo, Examples, JavaScript, Library

The TurboAjax Group have two released in one: TurboWidgets and TurboDbAdmin 0.2. Turbo Widgets TurboWidgets is one of the first (if not the first) commercially available widget package built on the Dojo Toolkit. Naturally, TurboWidgets inherits all of Dojo’s AJAX goodies for free. TurboWidgets features TurboGrid, a fully dynamic AJAX data grid supporting editing, row Read the rest…

Posted by Dion Almaer at 9:23 am

3.8 rating from 33 votes

Monday, March 6th, 2006

Forget addEvent, use Yahoo!’s Event Utility

Category: Articles, Examples, JavaScript, Library

Dustin Diaz thinks that we should forget addEvent, use Yahoo!’s Event Utility. This comes from a guy who has watched others, and who gave it a shot himself. Why should we use it? Handler Attachment Deferral: According to the event utility API document: If you attempt to attach a handler to an element before the Read the rest…

Posted by Dion Almaer at 9:48 am

4 rating from 19 votes

Friday, March 3rd, 2006

JS Sorcerer: Check your JS code

Category: JavaScript, Utility

JS Sorcerer is a product that watches over your JavaScript code: It performs syntax checking, variable type and flow analysis on standalone JavaScript files, and provides type-safe linking for applications and projects that consist of multiple JavaScript files. It detects and reports errors at compile time, eliminating the need to invoke a browser simply to Read the rest…

Posted by Dion Almaer at 7:35 pm

3.6 rating from 31 votes

Thursday, March 2nd, 2006

Rasmus Lerdorf’s no-framework PHP MVC framework

Category: JavaScript, PHP, Programming

Rasmus Lerdorf, creator of the PHP langauge, has a new tutorial on his site today that looks at the creation of a “no-framework PHP MVC framework” using PHP5, the Yahoo! User Interface Library, and JSON. So you want to build the next fancy Web 2.0 site? You’ll need some gear. Most likely in the form Read the rest…

Posted by Chris Cornutt at 8:27 am

3.5 rating from 34 votes

Tuesday, February 28th, 2006

Attack of the Ajax form builders

Category: Ajax, Component, JavaScript, Showcase, Toolkit, UI

Rapid form development with Ajax: JotForms, FormBuilder, and Wufoo

Posted by Rob Sanheim at 11:43 pm

4 rating from 142 votes

Ajax Plugin Released for jQuery

Category: Ajax, JavaScript

For all of the jQuery fans out there (or anyone, really that wants a lightweight, powerful Javascript framework), there’s been a new plugin released to integrate Ajax support into this popular package. The new AJAX plugin for jQuery is ready – and if you’re running off of the latest code, it’s already rolled in. Along Read the rest…

Posted by Chris Cornutt at 2:09 pm

3.9 rating from 60 votes

Friday, February 24th, 2006

Rich, accessible pagination with unobtrusive javascript

Category: JavaScript, Programming, Usability

In this post on, there’s a walk-through (complete with code) of a method for doing pagination with Ajax that’s both simple and accessible. I’ve seen a few questions about doing pagination with AJAX, and I don’t like the thought of it. It smells of accessibility problems. I’ve addressed this issue before in my own Read the rest…

Posted by Chris Cornutt at 9:41 am

3.5 rating from 19 votes

Thursday, February 23rd, 2006

Selenium IDE Screencast

Category: JavaScript, Ruby, Screencast, Testing

In our podcast with Patrick Lightbody he talked about his work with Selenium IDE. Jonas Bengtsson just came out with a screen cast in which he “creates a new Rails project, install Selenium on Rails, create a test case using Selenium IDE, create another in RSelenese, and run all the test as a Rake task.

Posted by Dion Almaer at 8:37 am

3.9 rating from 22 votes

Tuesday, February 21st, 2006

Quick Tip: Text Truncation with JavaScript

Category: JavaScript, Tip

A random tip here. This snippet allows you to truncate a paragraph, and add a ‘…’ to the end of the truncation. When a user clicks on the ‘…’ it expands out to the full text. Truncate the text to a length of your choosing Do not truncate in the middle of a word (only Read the rest…

Posted by Dion Almaer at 8:01 am

3.4 rating from 56 votes

Monday, February 20th, 2006

The Future of JavaScript: an Update from Brendan Eich

Category: Firefox, JavaScript, Programming, Python

Brendan Eich has posted a status update on some of the work going into the upcoming JavaScript 2, aka ECMAScript Edition 4 (ES4). One feature that should look familiar to Python hackers are generators and iterators, as seen in the following example taken from a console session: < View plain text > javascript js> function Read the rest…

Posted by Rob Sanheim at 7:00 am

4 rating from 118 votes

Sunday, February 19th, 2006

Show Love to the Object Literal

Category: JavaScript, Programming

A Javascript tip from Chris Heilmann, who reckons the object literal is “pretty close to sliced bread”. Replace: < View plain text > javascript var commonSense=null; var standardsCompliance="50%"; function init(){   // code } function doStuff(){   // code } function doMoreStuff(){   // code } with the object literal form: < View plain text Read the rest…

Posted by Michael Mahemoff at 2:11 am

3.2 rating from 53 votes

Saturday, February 18th, 2006

Lightbox.js with moo.fx

Category: JavaScript, Prototype, Toolkit

Sean McBride at alwasybeta has a detailed entry describing their modification of the lightbox.js tool we covered earlier. For use at alwaysbeta, Sean integrated moo.fx, added a close button, did some general code cleanup, and added an attractive Apple-like spinner graphic for the loading image. In the process, Sean found some bugs in moo.fx that Read the rest…

Posted by Rob Sanheim at 5:28 pm

4.1 rating from 113 votes