axwiec04

IE7 Cross-domain issue with TitlePane digit

Discussion created by axwiec04 on Nov 30, 2011
Latest reply on Dec 2, 2011 by axwiec04
Could someone explain to me why this first code example works in IE8 but but the second one doesn't.  I dont understand why I get the "Could not load cross-domain resources" error with the TitlePane digit but not other digits from esri.  It works right from dojo.

Thanks,
Ali

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr">
   
    <head>
        <style type="text/css">
            body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
        </style>
        <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
        djConfig="parseOnLoad: true">
        </script>
        <script type="text/javascript">
            dojo.require("dijit.TitlePane");
        </script>
        <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css"
        />
    </head>
   
    <body class=" claro ">
        <div id="tp2" dojoType="dijit.TitlePane" title="I'm a TitlePane Too">
            Click arrow to close me.
        </div>       
    </body>

</html>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr">
   
    <head>
        <style type="text/css">
            body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
        </style>
        <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"
        djConfig="parseOnLoad: true">
        </script>
        <script type="text/javascript">
            dojo.require("dijit.TitlePane");
        </script>
        <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/dojo/dijit/themes/claro/claro.css"
        />
    </head>
   
    <body class=" claro ">
        <div id="tp2" dojoType="dijit.TitlePane" title="I'm a TitlePane Too">
            Click arrow to close me.
        </div>       
    </body>

</html>

Outcomes