Main

December 04, 2006

How to code anything in JavaScript

This began as a post for the JAG internal wiki. But I wound up looking up a lot of good links, so I thought I'd mirror the post here in order to keep those links handy.

When I want to implement a requirement, such as a business rule or DHTML behavior in JavaScript, sometimes I find that I don't know how to implement that behavior. Sometimes this might be because the requirement is complex, as in the case of DHTML animation. Or the algorithm I am searching for may just be obscure, such as a unique ID generator that uses a closure instead of a global counter.

When I do not immediately know how to implement a requirement, I usually need that information in a hurry. I do not have time to make extensive flow charts, or to research the deep features of JavaScript. What I want is to find someone else who has already implemented something ''similar'' to the requirement. And I want to see their source code.

Continue reading "How to code anything in JavaScript" »

November 20, 2006

Event Selectors JavaScript/Ajax library at Encytemedia --- Design and development crossfade

http://encytemedia.com/event-selectors/

Another js library that I'd like to use some time.

"event:Selectors allow you to apply an event such as mouseover, mouseout, click, et al using a CSS style syntax."

Continue reading "Event Selectors JavaScript/Ajax library at Encytemedia --- Design and development crossfade" »

November 19, 2006

Why Ajax is not just JavaScript

Would they pay Ajax developers $3000 more, if it were "just JavaScript"? But JavaScript developers can take heart in that at least they are not Web developers, a clearly inferior profession.

November 06, 2006

Choose a value with two select menus

Intermediate Web developers often stumble over the problem of getting select menus to talk to each other. One common problem is the situation where the options that are in select menu B, are dependent upon the option that has been selected in menu A.

Here is one solution to a somewhat different problem, that also involves getting two select menus to cooperate.

The problem is that we have two menus, one of which contains the first part of a choice, and the other contains the second part. Once a selection has been made, how do we collect both parts of the choice; and how do we decide what that particular choice means, in the context of the application? Here is how I would probably implement that.

Choose a value with two select menus