Skip to content
September 16, 2009 / edeustace

Internet explorer keeps reloading the Flex html if the url has a hash (#) at the end

On my last project IE was throwing a crazy error for our flex application. If you loaded the url with a # at the end of it (eg: http://localhost:8080/myApp/index.html#/home), the page would keep throwing an errror and then reloading once you clicked ok.

Well after some googling I found this and this.

From gary haran:

Internet Explorer doesn’t like scripts appending elements to the existing DOM, especially when the script tag is inside ul, ol, table, form, blockquote, and various other tags…. When Internet Explorer fails it fails spectacularly by shutting down the script engine and aborting page rendering.

I haven’t researched why the flex template is triggering it, but my suspicion is that it has something to do with history.js trying to write something before explorer is ready for it.

Anyway the good news is that you can fix this by just using swfobject. Flex 4 will use swfobject out of the box.

I’ve reported the bug to Adobe.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: