To install it u have to replace 'serverapi.arcgisonline.com' with your path.as example you have thenyourserver.de/jsapi/arcgis/3.1/js/dojo/dojoyourserver.de/libraries/jsapi/3.1/jsapicompact/js/dojo/dojothis should be made in the files init.js and js/dojo/dojo/dojo.jsto include the jsapi include 'yourserver.de/libraries/jsapi/3.1/jsapicompact/init.js' or if you want to do it like the other versions < 3.1create a file you want for php:<?php
header("Content-type:application/x-javascript");
readfile("js/dojo/dojo/dojo.js");
readfile("js/esri/jsapi.js");
?>
for .net:<%@ WebHandler Language="C#" Class="jsapi" %>
using System;
using System.Web;
using System.IO;
public class jsapi : IHttpHandler {
public void ProcessRequest (HttpContext context) {
// GZIP if supported
string AcceptEncoding = HttpContext.Current.Request.Headers["Accept-Encoding"];
if (!string.IsNullOrEmpty(AcceptEncoding) && AcceptEncoding.Contains("gzip")) {
context.Response.AppendHeader("Content-Encoding", "gzip");
context.Response.Filter = new System.IO.Compression.GZipStream(context.Response.Filter, System.IO.Compression.CompressionMode.Compress);
}
context.Response.ContentType = "application/x-javascript";
context.Response.Expires = 1800;
context.Response.WriteFile(context.Server.MapPath("js\\dojo\\dojo\\dojo.js"));
context.Response.WriteFile(context.Server.MapPath("js\\esri\\jsapi.js"));
}
public bool IsReusable {
get {
return false;
}
}
}
or for JSP:<%@page contentType="application/x-javascript; charset=utf-8" session="false" %>
<jsp:include page="js/dojo/dojo/dojo.js" />
<jsp:include page="js/esri/jsapi.js" />
save your createt file and set it as default for that path.Now you can call the jsapi 'yourserver.de/libraries/jsapi/3.1/jsapicompact/'