AnsweredAssumed Answered

Reference the ArcGIS API for JavaScript using StealJS

Question asked by songhu on May 3, 2013
Latest reply on May 6, 2013 by songhu
Hi,
Has anyone tried to reference the ArcGIS API for JavaScript using StealJS instead of adding

<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css">
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script>

to the <head> tag?

I tried to use:

steal("http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/")
    .css("http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri")

but StealJs thinks i am looking for "http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/.js" and reports not found(404).

Outcomes