Author: abram
-
Photos: Day #123
12.27.09: Anniversary.
-
Photos: Day #122
12.26.09: Lighting the stairs.
-
Photos: Day #121
12.25.09: The sleepy melodica player.
-
Photos: Day #120
12.24.09: Ignacio
-
Photos: Day #119
12.23.09: Kitten does not compute.
-
Photos: Day #118
12.22.09: Snow covered.
-
Photos: Day #117
12.21.09: No. 5
-
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”);…