Archive for the ‘Client scripting’ Category

Ajax invite-only comments

Monday, September 26th, 2005

I’ve been MIA here because we just launched invite-only comments over at Lifehacker which involve a crazy MT plugin and really neat Ajax as-you-type comment preview and posting.

Usually velvet ropes aren’t my cup of tea, but the invitation system seems to be working well. I’ll send anyone an invite who offers an earnest and worthwhile tip for the site. So far there have been fewer comments than I anticipated but the ones that are there are super-high quality and on-topic, so that makes me happy.

Comments completely change the face of a site, making a post an interaction instead of a statement, which is nice. I felt kind of high up there on my LH horse and disconnected from the readership. Now, with comments, I feel like we can all stand around and chat.

Comments also went live on Gawker, and already commenters there have been banned and threads seem more like a standup comedy routine where people compete to show who’s snarkier. Which makes sense for Gawker, I guess.

Anyway, most other stuff has been put on hold while I pack my apartment to move West and keep Lifehacker on track. Hopefully more dev posts soonish.

Ajax quick searches and lookups

Wednesday, September 21st, 2005

ObjectGraph’s define-as-you-type dictionary and Wikiwax’s dynamic Wikipedia lookup are my two favorite uses of Ajax.

ObjectGraph Dictionary
WikiWax

Ajax SuggestBox

Thursday, September 8th, 2005

SuggestBox in actionThe free Ajax SuggestBox will render a search input box that drops down with suggestions as-you-type on a web page. The Javascript and server-side script for getting suggestions available for download.

The most useful applications of this type of suggest I’ve seen are for entering freeform tags in del.icio.us, and for a Wikipedia search at WikiWax. Of course, there’s always Google Suggest which I think started the whole suggest theme. Any others out there?

SuggestBox

JavaScript Archive Network

Wednesday, September 7th, 2005

The CPAN for Javascript, JSAN seems to offer a whole lot of useful Javascript code for download. An interesting bit in the FAQ:

[The Javascript] people seem to fall into two camps. The first are people who consider themselves programmers or application developers. They like JSAN because it allows you to develop in an application style. Thinking about modular components is important in software design. The second group of people consider JavaScript a scripting language, something you write small things in.

I’ve tended toward the ’something that you write small things in,’ but then I saw Gmail and Google Maps, and I changed my mind.

JSAN - Home

JavaScript Logging

Tuesday, September 6th, 2005

FV LoggerJavascript logging using the fvlogger library looks SO MUCH BETTER than sprinkling alert()’s through your Javascript code.

JavaScript Logging [A List Apart]

Email address obfuscator

Sunday, September 4th, 2005

Every time I have to publish a clickable email address on a web page I wind up Googling Javascript tools that obscure the mailto: link and telltale user@example.com format so that spam bots can’t easily pick up the address and tsunami the user with junk.

There are plenty of tools out there, but none that do all that I wanted: namely, encode the ‘mailto’ bit and display a live preview of the link. So I’ve gone ahead and thrown one together of my own.

Go ahead and give it a whirl, it’s got exciting iframe cross-scripting going on for the preview. *

* For now it’s Firefox-only while I work out the IE and Safari compatibility issues. Tested and works now on Internet Explorer 6 with SP 2 on Windows, Safari on Panther and Firefox Windows and Mac.

Javascript Email Address Obfuscator by Gina Trapani

Learning Ajax

Sunday, September 4th, 2005

O’Reilly developer Micheal Smith asks readers what resources will help him learn Ajax, and gets a few good recommendations in response.

Learning Ajax (JavaScript and XML): recommendations? [O'Reilly XML.com]

View your cookies

Thursday, September 1st, 2005

A quick way to see all the cookies a web page has currently set is to type the following into your browser’s address bar (works in all browsers):

javascript:alert(document.cookie);

Color Blender

Tuesday, August 30th, 2005

Color Blender screen grabCSS guru Eric Meyer’s Color Blender tool takes two colors and a number of midpoints and returns all the shades in between. I used the Color Blender to calculate the blues in this site’s design. Neat, helpful Javascript widget for the color-dumb.

Color Blender [Eric Meyer]

Drag and drop sortable lists

Tuesday, August 30th, 2005

Tim Taylor’s drag and drop sortable lists with Javascript and CSS could be a useful dynamic control on a web page. I use it in the not-yet released Scribblish for authors to reorder custom fields on the article edit page. It would also work well to reorder photos in a gallery app. Here’s a few examples of the drag and drop lists in action.

Drag and drop sortable lists [Tim Taylor Consulting]