Select to view content in your preferred language

How to donwload Esri css samples

4363
5
12-02-2012 05:44 PM
JoseSanchez
Frequent Contributor
Hi all

In the ArcGIS Javascript library how can I download in local the css files such as:

<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css">
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />
  

Thanks
0 Kudos
5 Replies
DavideLimosani
Frequent Contributor
Hi all

In the ArcGIS Javascript library how can I download in local the css files such as:

<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css">
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />
  

Thanks


I'm not sure I understand.... why can't you copy the href in your browser and save it in local?
0 Kudos
JoseSanchez
Frequent Contributor
Hi Davide,

I can copy the href in my local project and use it, but when deploying the project to a production server, I prefer to have a copy of the CSS files and Dojo files in local to avoid problems of availability on the internet of these files.  So my question is to know if there is a way to download the source code of an Esri CSS file or other files.

Regards






I'm not sure I understand.... why can't you copy the href in your browser and save it in local?
0 Kudos
DavideLimosani
Frequent Contributor
Hi Davide,

I can copy the href in my local project and use it, but when deploying the project to a production server, I prefer to have a copy of the CSS files and Dojo files in local to avoid problems of availability on the internet of these files.  So my question is to know if there is a way to download the source code of an Esri CSS file or other files.

Regards


1) copy "http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css" in your browser
2) you will see the css file
3) ctrl + A, ctrl + C
4) on your machine right click, new, text document
5) open it and ctrl+V
6) rename it claro.css
7) change the href in your code with your local path

this should work

regards
0 Kudos
derekswingley1
Deactivated User
0 Kudos
JoseSanchez
Frequent Contributor
Thank you!

I am now browsing the dojotoolkit.org site and realized that most of the css files such as soria.css are part of the Dojo library so they can be downloaded from this site

http://dojotoolkit.org/reference-guide/1.8/dijit/themes.html#id10


I thought that this css files were Esri cutomizations or owned by Esri.
0 Kudos