xml.load problem with IE6
IE6 has been for a very long time an enemy for web developers because of the way it renders HTML and CSS.
Fortunately, Flash has always been a rescue for me, because I develop RIA as well as HTML websites I have always enjoyed the way flash is always the same with IE6 as with other browsers.
This has been the case until the first and persistent bug.
I created a flash player for a client using XML to load the song list, the XML is rendered from server side data.
What was the problem?
The problem was the XML object kept being null (undefined) even though the data came from the server. This problem appeared only in IE6, not in any other browser.
I dug my code quite a bit till I figured out the solution.
The “Response Header” for the file was not the right header and it was gZipped on demand.
So, how can you solve this you ask?
remove the gZip from this file, filter it out from the gZip of the other website
create the exact same response header as in this image:
Remove any other HTTP header and verify that the file is not being cached at any way.
As a validation I added a cacheKiller parameter at the end of the file call.Submit to Hacker News
[NOTE] This post has been imported to Hugo from a Wordpress blog. It may be broken, missing images, code snippets or other information.
[NOTE] updated August 30, 2009. It's 3437 days old . This article may have outdated content.