Client scripting category archive

Ajax quick searches and lookups

September 21st, 2005 | Filed under Javascript, DHTML, AJAX

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

September 8th, 2005 | Filed under AJAX

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

September 7th, 2005 | Filed under Javascript, Reference

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

September 6th, 2005 | Filed under Javascript

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

September 4th, 2005 | Filed under Code snippets, HTML, Javascript, Essential Tools

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

September 4th, 2005 | Filed under AJAX

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

September 1st, 2005 | Filed under Code snippets, Javascript

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

August 30th, 2005 | Filed under Javascript, Color, Essential Tools

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

August 30th, 2005 | Filed under Javascript, CSS, DHTML

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]