Monday, July 24, 2006

Here is a nice AJaX pattern:

In most samples that I have seen so far, a global XMLHttpRequest variable is declared, since you cannot pass variables to the action handler.

In this article, they show a nice pattern, where you declare an anonymous function that calls another named function which may accept parameters; like this:

    http_request.onreadystatechange = function(){
        do_the_thing(http_request);
    };

This is particularly useful if you need to send of multiple XHRs without being able to gurantee the order in which they return.

Thanks to Joan Morris DiMicco for finding this.

Monday, July 24, 2006 8:44:45 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Wednesday, July 19, 2006

I was setting up SQL Server 2005 client tools (which are in parts .NET based) and notced that as part of the installation process, the installer generates native images from the the .NET MSIL code. The benefits are obvious, but I was under the impression that Microsoft was - at least in the past - discouraging such deployment behavior.

Wednesday, July 19, 2006 2:39:46 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Copyright by Gerald Beuchelt.