CSSquirrel A look at web development and web design by Kyle Weems

:

Posts Tagged ‘ie’

jQuery, JSON and IE – Getting Incorrect Array Length

Tuesday, October 14th, 2008

Has anyone had the following problem? When loading a JSON array (through something like $.getJSON), Internet Explorer will sometimes report the length of the array being one higher than other browsers, with the extra element in the array being blank.

I don’t know if this is a problem in other libraries, but I suspect it is. But I do know that it’s happened to me when using jQuery’s Ajax functions.

Why is this occurring?

I was tormenting myself with this same question on a client project, and discovered that although a bit of browser quirkiness was involved, it was actually an error on my part.

I hate it when it’s me. ;)

(more…)

Comic Update: The Passion of the Dean

Monday, May 12th, 2008

With Internet Explorer, there seems to be only two opinions: people love it or hate it.

When it comes to web developers, it seems to be pretty much hate. Granted, I’m on that page, as I’ve spent more than a few hours of a client’s budget trying to get IE7 (let alone IE6) render a site properly. Or even close to properly. I’d say almost half of my posts so far at my Mindfly blog are a testament to this fact.

But there is a point where people get rabid. I explore that theme in this week’s comic.

I understand that crucifying Dean Hachamovitch (the dev team’s general manager and author of this heavily hated/loved IEBlog entry – and no, I can’t pronounce it) might be going a bit too far. For that matter, displaying Jeffrey Zeldman in a Pontius Pilate role might be taking metaphors to excess. But I can’t help but feel that when it comes to browsers, we’re so full of rhetoric that any actual message, be it pro or con, usually gets lost in the rabid barking. Ultimately, they’re not evil zealots, nor saints. They’re just guys making code. It just happens to be code for the most widely used browser on the web… which probably means they need more coffee breaks than most of us to stay calm.

In case it needs to be said, I’m not encouraging anyone being hung up on a cross. That’d be bad form.