Archive for January, 2006

Encapsulating Ajax XMLHTTPRequest Calls within JavaScript classes

The guys over at Fold posted an article on how to use multiple XMLHTTPRequest (XHR) calls within a single page. This is something that I have had to tackle in my own work, and though I would write up how I solve this issue.

This post describes a simple technique for encapsulating XMLHTTPRequest calls within JavaScript classes. In general, this makes code more maintainable, allows for the creation of easier to use APIs, and makes it much easier to create components / widgets that load data from the server.

Continue reading…

Flash Player 8 already at 50%

As Emmy posted, we have just released new Flash Player penetration numbers.

Flash Player 8 can be viewed by around 50% of people online (45% US, 55% Canada and Europe). That is pretty amazing considering that the player was released just 5 months ago. This puts the player on course to reach 80% in well under a year from release.

You can view all of the stats here.

ActionScript 2.0 Cheatsheet

Super useful reference.

Anyone know of an ActionScript 3 one?

Learning Object Oriented JavaScript Programing from ActionScript

I have been doing some JavaScript / Ajax development over the past couple of weeks, and have been trying to figure out the best way to structure my JavaScript and HTML code. One thing that really surprised me when doing research is how many JavaScript projects / examples do not try to encapsulate their code (aside from within script files) or use object oriented programing. Thinking back on this, and given the evolution of JavaScript from a web scripting glue to more of an application programing language, I can understand this, but it did surprise me none-the-less.

Continue reading…

Macromedia News Firefox Extension Updated

I have uploaded a new version of the Macromedia News Firefox extension. This version adds support for Firefox 1.5.

Sorry it took so long.

You can find more information, as well as install the extension from here.

Ill probably do another build in the coming weeks to update the name and branding.

If you run into any issues, just post them in the comments.

Macromedia News Firefox Extension Fixed!

Just a quick fyi, but I just fixed the issue with the Macromedia News Firefox Extension that was keeping it from working in Firefox 1.5.

As I suspected, it was the same problem that I posted about earlier.

Anyways, I will post an updated version later tonight or first thing in the morning.

Removing HTML Element children with JavaScript

Just a quick fyi, but if you are doing work in JavaScript and need to dynamically remove all of the childNodes from a DOM element, make sure to do it with a while loop, and not a for loop.

For example, this is bad:

Continue reading…

Nine Tips for Designing Rich Internet Applications

Useful post by Bill Scott. Most of them apply to both Flash and Ajax based RIAs.

If you are interested in this, you might also want to check out the Adobe XD (experience Design) blog.

via Ajaxian.

Resources for Compiling ActionScript 3 and MXML from the command line

In this post, I am going to provide all of the links you need to get started with compiling ActionScript 3 and Flex 2 / mxml from the command line (on Mac, Windows and Linux). I have had to send this info out in about 3 different emails today, so I figured I would post it here to get everything in one place.

Continue reading…

ExternalInterface Bug with new line chars

A couple of days ago I ran into a bug with ExternalInterface which caused me quite a hassle (a couple of people ran into it before I did). I finally figured it out, and wanted to post here in case anyone else runs into it.

Continue reading…