<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dojo and AGS javascript API throwing &amp;amp;amp;quot;Could not load cross-domain resources&amp;amp;amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-and-ags-javascript-api-throwing-amp-amp-quot/m-p/353967#M32789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I enable cross-domain access in Visual Studio 2010 to different resources in a web-mashup built on the&amp;nbsp; ArcGIS server REST&amp;nbsp; api,&amp;nbsp; a Work Management web-service, jQuery and Dojo all at once?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??ve put crossdomain.xml and clientaccesspolicy.xml files in inetpub/wwwroot and in the top level of the ASP.Net application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to host everything at localhost/virtualdirectory,&amp;nbsp; then all the CSS and Javascript that reference the root �??/�?� do not exist at localhost/, they are at localhost/virtualdirectory/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The arcgisonline server seems to include the Dojo api , so I�??m hesitant to try different Dojo downloads for fear of screwing up ArcGIS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The web-service is hosted at:&amp;nbsp; WinXP IIS5 localhost:80&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The VS debugging is hosted in WinXP VS2010:&amp;nbsp; ASP.Net development server localhost:8011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS REST API is:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;jQuery is:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 14:54:57 GMT</pubDate>
    <dc:creator>bradeckrose</dc:creator>
    <dc:date>2011-02-03T14:54:57Z</dc:date>
    <item>
      <title>dojo and AGS javascript API throwing &amp;amp;quot;Could not load cross-domain resources&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-and-ags-javascript-api-throwing-amp-amp-quot/m-p/353967#M32789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I enable cross-domain access in Visual Studio 2010 to different resources in a web-mashup built on the&amp;nbsp; ArcGIS server REST&amp;nbsp; api,&amp;nbsp; a Work Management web-service, jQuery and Dojo all at once?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??ve put crossdomain.xml and clientaccesspolicy.xml files in inetpub/wwwroot and in the top level of the ASP.Net application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to host everything at localhost/virtualdirectory,&amp;nbsp; then all the CSS and Javascript that reference the root �??/�?� do not exist at localhost/, they are at localhost/virtualdirectory/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The arcgisonline server seems to include the Dojo api , so I�??m hesitant to try different Dojo downloads for fear of screwing up ArcGIS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The web-service is hosted at:&amp;nbsp; WinXP IIS5 localhost:80&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The VS debugging is hosted in WinXP VS2010:&amp;nbsp; ASP.Net development server localhost:8011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS REST API is:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;jQuery is:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 14:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-and-ags-javascript-api-throwing-amp-amp-quot/m-p/353967#M32789</guid>
      <dc:creator>bradeckrose</dc:creator>
      <dc:date>2011-02-03T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: dojo and AGS javascript API throwing "Could not load cross-domain resources"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-and-ags-javascript-api-throwing-amp-amp-quot/m-p/353968#M32790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doh...jo!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was doing a dojo.require("esri.&amp;lt;no such namespace&amp;gt;");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dojo has a timeout for loading cross domain resources.&amp;nbsp; When you try to load something that doesn't exist, it times out.&amp;nbsp; However, it doesn't tell you which resource it crapped on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Had to comment out individual requires to find the culprit. For some reason, I thought esri.InfoTemplate was a namespace/library, when it's really just a class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 14:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-and-ags-javascript-api-throwing-amp-amp-quot/m-p/353968#M32790</guid>
      <dc:creator>bradeckrose</dc:creator>
      <dc:date>2011-02-07T14:57:16Z</dc:date>
    </item>
  </channel>
</rss>

