Saturday, August 5th, 2006

Can Your Programming Language Do This? Javascript Can.

Category: JavaScript

Joel Spolsky illustrates the power of first-class functions in “Can Your Programming Language Do This?”. The article explains how Fortran, C, and Java fall short of fully supporting first-class functions in their own respective ways. What’s interesting from our Ajax-tinted perspective is that he uses Javascript to illustrate these concepts. In other words, although he Read the rest…

Posted by Michael Mahemoff at 5:44 pm

3.9 rating from 32 votes

Friday, August 4th, 2006

The Dangers of Browser Detect

Category: Browsers, CSS, Editorial, JavaScript, Programming

Picking up on the Rafael Lima’s new script to provide browser-detecting CSS selectors, PPK cautions on the dangers of browser detection. Rafael Lima’s script adds classes to HTML elements based on the results of an old-style (ie. purely navigator.userAgent-based) browser detect. The purpose is to allow web developers to add CSS rules for one browser Read the rest…

Posted by Michael Mahemoff at 10:09 am

4.1 rating from 60 votes

Thursday, July 27th, 2006

Prototypify: Running Prototype code with legacy code

Category: JavaScript, Library, Prototype

Aaron Newton, Product Manager at CNET sent us an email about his issues of using Prototype in production at a large company like CNET: I’ve made a lot of use of Prototype but using it has been a bit of a controversy here at our network. Specifically, the extensions that are inherent in Prototype often Read the rest…

Posted by Dion Almaer at 2:55 pm

3 rating from 8 votes

Pains of document.domain in FireFox 1.5

Category: JavaScript, Tip

Alexander Kirk has written about a problem with XHR, responseXML and document.domain in FireFox: This will work in IE, Safari, and Opera. This will not work in Firefox 1.0. This is very awkward but at least it has been fixed in 1.5. So it will work in Firefox 1.5. But: The responseXML object is useless. Read the rest…

Posted by Dion Almaer at 1:55 pm

4.1 rating from 17 votes

Javascript Boot Camp Tutorial

Category: Conferences, JavaScript

Whether you’re a “back to basics” kind of person or are just starting out and want to catch up quick on your Javascript skills, you might want to check out this great resource from a talk/tutuorial given by Amy Hoy at this year’s OSCON – a Javascript Boot Camp. Even though AJAX wouldn’t ever have Read the rest…

Posted by Chris Cornutt at 7:59 am

3.5 rating from 28 votes

Tuesday, July 25th, 2006

Link Thumbnail: Photo Mouse Over

Category: JavaScript, Library, UI

When Ben and I were at an “Under the Radar” O’Reilly event, one of the companies was trying to push a product that allowed you to mouseover a link and see what comes next. People doubted whether a company could be made around that idea, and now we are seeing more and more ways where Read the rest…

Posted by Dion Almaer at 9:24 am

3.9 rating from 33 votes

JavaScript and Mouse Wheels

Category: JavaScript

Adomas Paltanavicius has written about handling mouse wheel events in JavaScript. /** This is high-level function; REPLACE IT WITH YOUR CODE. * It must react to delta being more/less than zero. */ function handle(delta) { if (delta < 0) /* something. */; else /* something. */; } function wheel(event){ var delta = 0; if (!event) Read the rest…

Posted by Dion Almaer at 9:15 am

4.1 rating from 48 votes

Breaking User Interfaces for Fun and Profit

Category: JavaScript, UI, Usability

For all of the good uses of Ajax out there, there are still some really really (*really*) bad ones that come to mind. Unfortunately, some site developers just don’t quite know when to stop, and this post on today (by Alex Walker) points out just such a perpetrator – is a large, Read the rest…

Posted by Chris Cornutt at 7:26 am

4 rating from 18 votes

Monday, July 24th, 2006

XN Test: The next Unit Testing project?

Category: JavaScript, Library, Utility

Brian McCallister is up to his usual tricks. This time he didn’t like JsUnit for a certain use case, so he created the embryo for a new test framework in JavaScript: For now let’s call it XN. With it you can end up with a test API such as: < View plain text > javascript Read the rest…

Posted by Dion Almaer at 8:47 am

3.7 rating from 11 votes

Friday, July 21st, 2006

CSS Browser Selector

Category: JavaScript, Library

Rafael Lima took inspiration from 37 Signals browser selector idea and created it. “It” being a JS library that allows you to create browser specific CSS to be merged into your normal classes. Example You can prefix browser specific elements (available codes: ie, gecko, opera, konqueror, safari) and the library will make sure that the Read the rest…

Posted by Dion Almaer at 2:13 pm

4.2 rating from 30 votes

Tuesday, July 18th, 2006

Declarative Ajax

Category: Ajax, Articles, JavaScript

Duncan Cragg thinks that The Right Way to do Ajax is Declaratively: Don’t write your interactive Web application in custom Javascript! The Web’s Declarative nature needn’t be broken just because you want two-way dynamic data instead of one-way documents on your site. Instead, write Declaratively to generic Javascripts, plugins and browser features such as Hijax, Read the rest…

Posted by Dion Almaer at 7:26 am

3.8 rating from 54 votes

Json.NET 1.1: Converting between XML and JSON

Category: JavaScript, Library

James Newton-King has updated his Json.NET library to version 1.1. The major new feature is that you can now almost seamlessly convert between XML and JSON: < View plain text > javascript XmlDocument doc = new XmlDocument(); doc.LoadXml(@"< ?xml version=""1.0"" standalone=""no""?> <root>   <person id=""1"">     <name>Alan</name>     <url></url>   </person>   <person Read the rest…

Posted by Dion Almaer at 7:21 am

4.1 rating from 29 votes

Monday, July 17th, 2006

The Importance of Maintainable JavaScript

Category: JavaScript, Programming

There are three levels of Javascript programming that developers should go through: beginning programming with popups and roll-overs everywhere advanced Javascript coding with site-enhancing functionality and loads of bells and whistles writing maintainable Javascript That last one throw you for a loop a bit? Well, read on… It’s one thing to develop code that runs Read the rest…

Posted by Chris Cornutt at 6:48 pm

3.6 rating from 25 votes

Wednesday, July 12th, 2006

Adobe Spry and PHP/MySQL

Category: Adobe, Articles, JavaScript, Library

Mike Kornienko took Adobe’s Spry Framework for a spin. He has written up his thoughts on integrating it with a PHP/MySQL backend: Spry is Adobe’s Ajax library for manipulating XML data. It has some very unique and pretty useful functions like regions handling, related auto-updating data and stuff like that. For example, you can load Read the rest…

Posted by Dion Almaer at 7:20 am

3.3 rating from 77 votes

A Basic Approach to Server-side Data Validation with AJAX

Category: JavaScript, Programming

Input validation can be one of the biggest hurdles in a web application (besides being one of the most important). As much as we as developers hate to think about it, there will be users out there that try to stretch the limits of the app, finding the weak spots. Don’t let input validation be Read the rest…

Posted by Chris Cornutt at 7:03 am

3.3 rating from 35 votes

Tuesday, July 11th, 2006

Tuesday Morning Roundup

Category: JavaScript, Prototype, RichTextWidget, Ruby, Scriptaculous, Tip, WebKit

some stuff on Prototype, Safari and trailing commas, an Ajax design pattern, and a slide library

Posted by Rob Sanheim at 8:00 am

3.5 rating from 26 votes