Select to view content in your preferred language

It does not work when using jsapi_vsdoc_v3,but works without jsapi_vsdoc_v3,help

645
2
08-07-2012 11:02 PM
gaolei
by
Emerging Contributor
I has test arcgis_js_api v3 for studying,the test code comes from the instruction "install.html" .
When I don't use "jsapi_vsdoc_v3", there is no intelligent code tip,but the html showed in Explorer collectly.
When I use "jsapi_vsdoc_v3",like add "<script type="text/javascript" src="assets/jsapi_vsdoc_v3.js"></script>" in my test html,
the intelligent code tip does work, but when I see the html in Explorer, the map doesn't showed (although it doesn't say error).
I don't know what's the matter.
0 Kudos
2 Replies
JohnGravois
Deactivated User
I did a quick test and confirmed that basemaps definitely still display in Internet Explorer when the code assist is referenced with a script tag in an application.

I used the following sample as the basis of the application and added my script tag directly below the tag referencing our API on line 21. (see below)

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_topo.html

<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1"></script>
 <script type="text/javascript" src="Assets/scripts/jsapi_vsdoc_v3.js"></script>
    <script type="text/javascript">
      dojo.require("dijit.layout.BorderContainer");
      dojo.require("dijit.layout.ContentPane");
      .....


Where did you get this "install.html" file?
what is the URL of the basemap which is not displaying?
Where are you placing the script tag in your application?
0 Kudos
gaolei
by
Emerging Contributor
thank you for your reply!
I has downloaded the lastest zip for jsapiv3.1 and it's Ok.
thank you.
0 Kudos