Showing posts with label internet explorer. Show all posts
Showing posts with label internet explorer. Show all posts

Thursday, January 07, 2010

Internet explorer, Null!

What. Were. People. Thinking.

>new String(null).toString()
"null"


Ridiculous. Firefox doesn't do anything that stupid. Worse, it's broken my populate form from JSON code.


populate_data: function(report) {
for (key in report) {
if (!$(key)) {
continue;
}

$(key).value = report[key];
}
}

Monday, November 16, 2009

Internet Explorer, String.concat() and Javascript 1.5

Hello, Internet Explorer... have you ever tried to join two strings together?

Not add them ambigiously with
"a" + "b"
but
String.concat("a", "b");
them?

I'm guessing none of your developers ever has, because it doesn't work.


Why this acceptable:
String.fromCharCode(12);

but for concat, you have to do:
String("a").concat("b");


?

Ridiculous.

Reblog this post [with Zemanta]