<?php header("Content-type:application/x-javascript"); readfile("js/dojo/dojo/dojo.js"); readfile("js/esri/jsapi.js"); ?>
<%@ 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; } } }
<%@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" />
I found the text in v3.0 is "[HOSTNAME_AND_PATH_TO_JSAPI]js/dojo/dojo",but in v3.1 is "serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojo",maybe the newly instruction hasn't updated.I can't find "dojo.js.uncompressed.js " in v3.1, and I found the file v3.1 is 15MB,but v3.0 is 26MB, any error?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.