AnsweredAssumed Answered

ArcGIS 10.1 using JavaScript 3.2 in rest-config.properties (Know about esri.css!)

Question asked by geonetadmin on Nov 3, 2012
Latest reply on Nov 5, 2012 by jacobsj
Original User: Sibbald

I am using ArcGIS Server 10.1 SP1 on Windows and wish to use JavaScript Version 3.2 as it now supports transformations correctly.  As the server will not have internet connectivity, I have downloaded and installed the JavaScript locally and it works fine.
Obviously as the Server will not have access to http://serverapi.arcgisonline.com the Server REST pages do not work without being re-pointed to the locally installed JavaScript.  To test this upgrade to 3.2, before disconnecting the server, I have changed the rest-config.properties file which points to the online API shown below

jsapi.arcgis=http://serverapi.arcgisonline.com/jsapi/arcgis?v=3.1
jsapi.arcgis.sdk=http://help.arcgis.com/en/webapi/javascript/arcgis/
jsapi.arcgis.css=http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dijit/themes/tundra/tundra.css

[ATTACH=CONFIG]18987[/ATTACH]
[ATTACH=CONFIG]18986[/ATTACH]

to

jsapi.arcgis=http://serverapi.arcgisonline.com/jsapi/arcgis?v=3.2
jsapi.arcgis.sdk=http://help.arcgis.com/en/webapi/javascript/arcgis/
jsapi.arcgis.css=http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css

Tiled services work okay (i.e. they are not scattered randomly) but as the CSS is only the esri.css and not tundra.css the slider bar is not available, just a very pathetic + and - which is difficult to see. 

[ATTACH=CONFIG]18988[/ATTACH]
[ATTACH=CONFIG]18985[/ATTACH]

My question is in the rest-config.properties can additional css be added to the mandatory esri.css to reproduce the functionality of the REST JavaScript pages before Version 3.2 was released. 

And no I do not want to have multiple versions of JavaScript installed internally !

Thanks.

Attachments

Outcomes