Login Register

storage + xd + IE6 = pain

I've got a very basic cross-domain build of 1.1.0 that mostly works great but errors badly when trying to load dojox.storage in IE6--it throws a "can't load cross-domain resource" exception that I can't fully capture (the debugger refuses to show me anything).

I tried creating a storage layer as suggested by the storage profile...

dependencies = {
    layers : [
        {
            name: "../dojox/storage/storage-browser.js",
            layerDependencies: [
            ],
            dependencies: [
                "dojox.storage",
                "dojox.storage.GearsStorageProvider",
                "dojox.storage.WhatWGStorageProvider",
                "dojox.storage.FlashStorageProvider",
                "dojox.flash"
            ]   
        }   
    ]
   
    prefixes: [
        [ "dijit", "../dijit" ],
        [ "dojox", "../dojox" ]
    ]
};

...which I load into a test page thus:

<script type="text/javascript" src="[mydomain]/js/dojo1.1/release/dojo/dojo/dojo.xd.js.uncompressed.js"></script>
<script type="text/javascript"
src="[mydomain]/js/dojo1.1/release/dojo/dojox/storage/storage-browser.xd.js.uncompressed.js"></script>

When the storage-browser.xd.js.uncompressed.js is loaded from my CDN domain, IE errors on the dojo.isArray(superclass) call near the top of dojo.declare when storage tries to declare the dojox.storage.FlashStorageProvider.

But when I fall back to loading the non-XD storage-browser.js from my local domain (while still pulling down the dojo.xd.js from my image server), IE's totally happy and everything just works.

This *only* affects IE6 (which I unfortunately have to support)--there are no problems in FF, Safari, and IE7.

Any insight into how to get the storage stuff loaded in a cross-domain way would be really appreciated! Thanks in advance.