Operation Aborted errors in IE

Just pushed the latest update to ReadPath and noticed that I started getting weird errors in IE. The problem actually happened in both IE6 and IE7 which made me worry a bit more than usual. I had made a couple of changes prior to this happening, so it was time to start tracking down which change caused the problem.

First off, I had been playing with YSlow and working on getting the pages optimized for speed and cacheability. I had been appending random param strings to the JS includes so that IE wouldn’t cache it. At the time it was just too much of a hassle to try and determine if the problems I was seeing were due to bad code or just old code. So now that things were settling down a bit I pulled those params out. This meant that IE would start caching JS files.

Second, I started using the YUI libraries for a lot of the UI widgets. These really make it easier to develop a web application and it’s truly amazing how well they work across all of the major browsers. Web application development has come light years from where it was just a short time ago.

With these changes, I booted up my Win2k VM with IE6 and found that I was now getting “Operation Aborted” errors in IE. The page wouldn’t load at all and there was no way to determine what was causing the problem. So off to Google I went and quickly came across this solution.

If you are using a Javascript framework like YUI, you may encounter problems with Internet Explorer 6 spews the “Operation Aborted” errors.

This error occurs because

1. IE loads the entire HTML including Javascript the first time it loads data
2. When you try to refresh the page, IE would have cached some of the Javascript files which try to execute on a HTML page which isn’t loaded fully yet
3. IE thinks its illegal to do the above operation and throws up the error.

So the solution, which YUI already recommends is to wrap your initilization code in:

YAHOO.util.Event.onDOMReady(initialLoad);

This causes its own problem of course. The pages on ReadPath have a fair number of dialog boxes that are rendered by the YUI library and then hidden until they’re needed. With the new way of handling the initialization code, Firefox renders the unformatted dialogs for a brief amount of time before the page has finished loading. This causes a really ugly loading effect.

So the final solution, give all of the dialogs a class=”hiddenInitial” with that class set to display:none;. Then when the javascript gets to around rendering these dialogs, have it also pull the css class off of the divs. This way they don’t show up in IE or Firefox before they’re needed and everything works as expected.

Apple TV doesn’t see recent YouTube content

As I’ve mentioned in previous posts, I’m a big fan of tv as an alternative to broadcast television. However, today I noticed an interesting video on YouTube on scalability. I started to watch it on my laptop, but watching a long video on laptop just isn’t all that great. So I went over to the tv to pull up the video there. The problem was that the tv wasn’t pulling anything more recent than 4/18/08. A bit strange that it seems to be exactly a two month lapse.

I compared searches for “Seattle Conference” which pulls up a large number of the GoogleTechTalks, but all of the recent posts were missing from the tv results. The rest of the results were all there. Finally I tried adding the video as a favorite. It still won’t show up though. tv still says there’s nothing there.

I’ve tried looking around to see if there is anything about a two month blackout on tv but haven’t come up with anything yet.

Update:

Hmm, looks like this might be part of the problem. Trying to determine if there is a way to determine how the video is encoded.