Select to view content in your preferred language

FilteringSelect in Dojo 2.1

895
3
01-11-2011 07:08 AM
StephanieSnider
Frequent Contributor
What versions of dojo will work with ArcGIS Server 10?  We have a customized app that was built with dojo 1.1.  We are now trying to update the app to use dojo 2.1 but are finding that some of the objects are not available (as we can find) in the latest version.  For example, we cannot find "dijit.form.FilteringSelect" in dojo version 2.1.  Any suggestions?
0 Kudos
3 Replies
DerekSwingley
Regular Contributor
The current version of dojo is 1.5. Do you mean version 2.1 of the esri javascript API?

The filtering select is there. Where and how are you loading the javascript API? If you could post your code that would be helpful.
0 Kudos
StephanieSnider
Frequent Contributor
Yes, I meant ArcGIS API for Javascript 2.1.  Sorry about that.  I'm posting for a programmer who is helping me with the app.
---------------------
From Joe, the programmer....

   <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1" type="text/javascript"></script>
       <script type="text/javascript">
           dojo.require("esri.map");
           dojo.require("esri.tasks.geometry");
           dojo.require("esri.tasks.query");
           dojo.require("dojox.grid.Grid");
           dojo.require("dojox.grid._data.model");
           dojo.require("esri.toolbars.navigation");
           dojo.require("dijit.form.Button");
           dojo.require("dijit.form.FilteringSelect");
           dojo.require("dijit.Toolbar");
           dojo.require("esri.tasks.locator");
           dojo.require("dijit.form.NumberTextBox");
           dojo.require("dijit.Dialog");
           //dojo.require("esri.tasks.identify");
           //global variables

           var map, navToolbar, locator, coordSystemID, gsvc, mapClickAction, identifyTask, identifyParams;
           var streetMap, Naip, ngsTopoUS, PT;
           var queryTask, queryTaskAOC, uniqueEmails;
           var longitude, latitude, radius;
           var dataForGrid = [];
           var AOC = [];
           coordSystemID = "4326";
           mapClickAction = "Buffer";
           var coordDigits = new Number(6);
           function init() {

               //create map, set initial extent and disable default info window behavior
               map = new esri.Map("map", {
                   extent: new esri.geometry.Extent(-121.0, 35.0, -113.0, 42.0, new esri.SpatialReference({ wkid: 4326 })),
                   showInfoWindowOnClick: false
               });

               dojo.connect(map, "onLoad", initFunctionality);
0 Kudos
DerekSwingley
Regular Contributor
Ask your developer to add this before the script tag that loads the API:
<script type="text/javascript">var djConfig = {parseOnLoad: true};</script>


More info:  http://docs.dojocampus.org/dojo/parser
0 Kudos