Skip to content

notes to self

  • Photos: Day #124

    12.28.09: Transport.
    IMG_2827-1

    2009-12-31
  • Photos: Day #123

    12.27.09: Anniversary.
    IMG_2822-1

    2009-12-31
  • Photos: Day #122

    12.26.09: Lighting the stairs.
    IMG_2816-1

    2009-12-31
  • Photos: Day #121

    12.25.09: The sleepy melodica player.
    IMG_2801-1

    2009-12-31
  • Photos: Day #120

    12.24.09: Ignacio
    IMG_2777-1

    2009-12-31
  • Photos: Day #119

    12.23.09: Kitten does not compute.
    IMG_2758-1

    2009-12-31
  • Photos: Day #118

    12.22.09: Snow covered.
    IMG_2750-1

    2009-12-31
  • Photos: Day #117

    12.21.09: No. 5
    IMG_2745-1

    2009-12-31
  • JavaScript: Creating an XMLHttpRequest object.

    This function returns an XMLHttpRequest() object after evaluating the browser’s capabilities. I’m sure there is a way to clean this up a bit as well, but it seems to work thus far. Suggestions are welcome.

        function createRequest() {
            try {
                var r = new XMLHttpRequest();
            } catch (trymicrosoft) {
                try {
                     r = new ActiveXObject("Msxml2.XMLHTTP");
                } catch (othermicrosoft) {
                    try {
                        r = new ActiveXObject("Microsoft.XMLHTTP");
                    } catch (failed) {
                        r = false;
                    }
                }
            }
            return r;
        }
    
    2009-12-21
←Previous Page
1 … 12 13 14 15 16 … 29
Next Page→

notes to self

a document of a plodding mind

Twenty Twenty-Five

Designed with WordPress