You are here: > ESRI Forums > arcgis 9.3 release candidate forums > Thread Replies

ArcGIS 9.3 Release Candidate Forums

ArcGIS 9.3 Release Candidate: ArcGIS Server forum

Dojo Support for ArcGIS Server JavaScript A...   Jason Sardano Jun 11, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Jason Harris Jun 11, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Jason Sardano Jun 11, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Sam Berg Jun 11, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Jason Sardano Jun 12, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Christopher Rusanowski Jun 18, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Jayant Sai Jun 18, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Christopher Rusanowski Jun 18, 2008
Re: Dojo Support for ArcGIS Server JavaScri...   Nicholas Ranicar Nov 27, 2008
Report Inappropriate Content • Top • Print • Reply    
Subject Dojo Support for ArcGIS Server JavaScript API... 
Author Jason Sardano 
Date Jun 11, 2008 
Message The documentation at http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_dojo.htm states:

"As a programmer, you can take advantage of the full Dojo toolkit, not just the Dojo commands exposed through the Javascript API."

I am trying to use the FloatingPane widget (a sample can be found at http://peter.wagener.org/site-content/fp-test.html ) to render content as opposed to the InfoWindow. However, the Dojo "require" calls to the files listed below result in an HTTP 404 Error - The page cannot be found.

Does the JavaScript API truly support the full Dojo toolkit?

Thank you,
Jason

 
 
//The following files are not loaded by the Dojo toolkit:
dojo.require("dojo.widget.FloatingPane");
dojo.require("dojo.widget.LayoutContainer");
dojo.require("dojo.widget.ContentPane");
 
  Jason Sardano
Senior Programmer Analyst
Maine Department of Transportation 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Jason Harris 
Date Jun 11, 2008 
Message I suspect you'll have to actually grab the entire toolkit from the dojo website and install it locally. I doubt that esri has included every piece of the toolkit in their js reference.

But, thats a guess becasue I use Ext anyway. 
  Jason Harris
jharris@roktech.net
www.roktech.net/devblog

 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Jason Sardano 
Date Jun 11, 2008 
Message I was kind of expecting that, but I am hoping that someone from ESRI will comment on my post since their documentation states:

"you can take advantage of the full Dojo toolkit" 
  Jason Sardano
Senior Programmer Analyst
Maine Department of Transportation 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Sam Berg 
Date Jun 11, 2008 
Message Hi Jason,

I'm told that the full dojo toolkit is in fact installed with AGS.

The errors that you are running into likely concern the fact that this is an older sample you are using, and with the current Dojo framework, for example, the FloatingPane class is now ‘dojox.layout.FloatingPane’.


http://dojotoolkit.org/

http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/dijit-glance

I hope this helps,
Sam B.
ESRI
Boston 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Jason Sardano 
Date Jun 12, 2008 
Message Thanks Sam. 
  Jason Sardano
Senior Programmer Analyst
Maine Department of Transportation 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Christopher Rusanowski 
Date Jun 18, 2008 
Message You need to watch out for samples, etc, based upon the older (0.4) version of DOJO.

An easy way to tell lots of samples are by looking at the require statement. dojo.widget is no longer used. Instead it is dijit.

The ESRI version does include all the components, including dojox, etc. However, some of them do not seem to work appropriately.

For example, the xd (cross-domain) stuff does not work with the ESRI build of DOJO. 
  +---------------------------------------+
Chris Rusanowski ( crusanow@usgs.gov )
Stinger Ghaffarian Technologies (SGT, Inc.)
+---------------------------------------+
 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Jayant Sai 
Date Jun 18, 2008 
Message Hi Chris,

~ For example, the xd (cross-domain) stuff does not work with the ESRI build of DOJO.

Can you tell us what exactly is not working?

thanks
Jayant 
  Jayant B Sai
ArcGIS JavaScript API 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Christopher Rusanowski 
Date Jun 18, 2008 
Message Hi Jayant,

We setup a test case that tested functionality we desired. The cross-domain loading is the only one we have not gotten a fix for. You can view that test case at http://imsdemo.cr.usgs.gov/webappcontent/DOJO_Testing/coolio_esri.html. It still returns the same error.

The "work-around" is to load the JavaScript directly, but there are some advantages to using DOJO require.

I am currently reviewing alternate methods of dynamically loading JavaScript like jsModule and Module.js, or custom built. 
  +---------------------------------------+
Chris Rusanowski ( crusanow@usgs.gov )
Stinger Ghaffarian Technologies (SGT, Inc.)
+---------------------------------------+
 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Dojo Support for ArcGIS Server JavaScript API... 
Author Nicholas Ranicar 
Date Nov 27, 2008 
Message I'm trying to use the cross domain functionality to load some local classes. Has there been any progress on this? I'm running into issues so it would appear not... (using version 1.1 of the JavaScript API)