jump to navigation

Windows 8 IE 10 Metro Disabled by Firefox November 16, 2011

Posted by kevinbe71 in IE.
Tags: , , , ,
add a comment

I recently installed Firefox 8 on my Windows 8 Developer Preview system and subsequently IE started playing up. The metro shortcut went gray and would no longer launch IE metro- instead it resorted to launching IE classic! It turned out that the problem was related to the default browser setting. The fix is “easy”- make IE the default. This may or may not be a showstopper for you and that’s why I put easy in quotes! Hopefully Microsoft changes this behaviour by the time they release W8.

x is undefined or… text/javascript vs application/javascript vs application/x-javascript February 27, 2011

Posted by kevinbe71 in Development, IE, Javascript, Web Development.
add a comment

Recently I’ve been playing around with iui and doing a webapp for the iPhone.  Everything was working fine on the iPhone itself but I needed to do a little bit of debugging of the javascript while using IE and that’s when things went south…

I received an “x” is undefined error when a javascript function was being called on class “x”.  It seemed as if IE just couldn’t see the javascript file that I was including in my web page but that didn’t seem right- or was it?  Actually it turned out that’s exactly what was happening because IE 8 and earlier do not adhere to the newer RFC 4329 spec.  My web page was using type=”application/x-javascript” (not even the standard application/javascript).  While mobile Safari was happy with this, IE was not.

The only reason that I managed to figure this one out (a Google search didn’t yield the right answer because the recommendations I found said that “application/javascript” was what I should be using!) was that my page had two javascript references by chance, one using “text/javascript” and one using “application/x-javascript”.  When I fired up the IE debugger it showed the contents for the “text/javascript” file but the “application/x-javascript” file showed up blank.  I looked into what the differences were and found this out.

Anyway, just thought I’d post this here in case anyone else has run into this one…  You must use text/javascript if you want your javascript to work in IE as well as other browsers even if it has been deprecated!  Maybe IE 9 will fix this?  Not sure, don’t have it installed…

Follow

Get every new post delivered to your Inbox.