<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Building a modular application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673594#M62795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea was not to create a general application, but creating a general GIS JavaScript library that endorse the ArcGis JavaScript API, hiding some of the async functionality, making the job easier for doing application development. I agree that in most cases you have to make a more restricted application. What I am here is doing, is creating an application that can be used for testing the different aspects&amp;nbsp; of the ArcGis JavaScript API and how far you can go with this in web editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having such a tool, as a developer I no longer need a desktop license for simple consulting of data or creating some simple features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm happy to hear that you're moving to using the ArcGIS API for JavaScript but I'd like to discourage you from trying to duplicate ArcMap in a browser. Web apps should not strive to duplicate heavyweight desktop clients, even if your goal is a light version. I would instead encourage you to build focused, targeted apps with a specific use in mind. Try to build apps that answers a specific question or addresses a specific problem rather than building something that is a tool for general analysis.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 13:17:25 GMT</pubDate>
    <dc:creator>JohnnyPenet</dc:creator>
    <dc:date>2012-05-21T13:17:25Z</dc:date>
    <item>
      <title>Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673582#M62783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am coming from a flex background and like a few other people on this forum started working with the javascript api after certain developments regarding flash in the past couple weeks. I have some sites and functionality working fine but there is one issue I am having trouble with. I would like to be able to develop a javascript app with a modular structure(similar to the sample flex viewer) so as to keep from having 500+ lines of javascript in the main html page and have something a little easier to work on and maintain. I know you can do this with dojo but I am having problems getting the dojo.require("mymodule") to resolve at the same time as getting dojo.require("esri.map") to resolve. Does anyone have a simple example of say an identify task in a seperate .js file or something similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Henry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 17:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673582#M62783</guid>
      <dc:creator>HenryColomb</dc:creator>
      <dc:date>2011-11-18T17:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673583#M62784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is something we should probably talk about more often but we tend not to because it's so dojo centric. Plain old JavaScript will let you do whatever you want from stuffing everything in a single .html file to setting up your own class-based inheritance system. The latter is a ton of work but thankfuly dojo takes care of this for us. I would recommend reading up on &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.6/declare/"&gt;dojo.declare&lt;/A&gt;&lt;SPAN&gt; and also looking into creating &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.6/recipes/custom_widget/"&gt;custom widgets&lt;/A&gt;&lt;SPAN&gt; as another way to modularize your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You mentioned that you're having some trouble with module paths. What are you specifying in your dojoConfig or djConfig object and where are your .js files relative to file where modulePaths are defined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673583#M62784</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-18T20:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673584#M62785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some more work on it I got some simple references to work when I added a local copy of dojo.js. Then trying to do an identify task in mymodule.js with the map code in index.html and trying to reference back and forth was making my head spin. Much of this has to do with being a javascript noob and being used to dealing with complied code. Ill check out your links and see if I can get something very basic going and post the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for such a quick reply Derek!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673584#M62785</guid>
      <dc:creator>HenryColomb</dc:creator>
      <dc:date>2011-11-18T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673585#M62786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So after a little more work and understanding I have a custom dojo widet at domain/site/custom/CustomWidget like in the linked tutorial. If I set the djConfig to baseUrl : './' it breaks all the layout and other dojo code. If I comment out the baseUrl the app loads fine but then I get a "reference error custom is not defined". According to dojo the default baseUrl is set by the root of the dojo.js but what is the baseUrl when loading dojo from cross domain like arcgisonline.com/jsapi/arcgis/?v=2.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Henry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 20:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673585#M62786</guid>
      <dc:creator>HenryColomb</dc:creator>
      <dc:date>2011-11-23T20:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673586#M62787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having difficulty with this too.&amp;nbsp; I'm trying to reference a custom dijit on my local web server while using the ESRI's javascript API via CDN.&amp;nbsp; I'm trying to make use of dojo module system and have my folder structure correct to map to the namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my host html page...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modulePaths: {"nrss": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:70/Scripts/nrss" rel="nofollow" target="_blank"&gt;http://localhost:70/Scripts/nrss&lt;/A&gt;&lt;SPAN&gt;"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("nrss.overflights.dijit.SimpleBehavioralDijit");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trouble is firebug tells me it's looking for an xd.js file.&amp;nbsp; I don't know how to create one.&amp;nbsp; Further, I don't understand how the xd files differ.&amp;nbsp; I'm familiar with cross-domain issues in Silverlight/Flex and jsonp approaches but don't understand how that relates to these xd files.&amp;nbsp; Also, what is a cross-domain build of dojo or esri's javascript api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two useful links but still don't get me all the way to a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.reigndropsfall.net/2010/07/07/local-modules-with-xdomain/"&gt;http://www.reigndropsfall.net/2010/07/07/local-modules-with-xdomain/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://nileshbansal.blogspot.com/2008/03/creating-custom-dojo-widget-using-cross.html"&gt;http://nileshbansal.blogspot.com/2008/03/creating-custom-dojo-widget-using-cross.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried manually creating the xd file following the recipe from the 2nd link above but it fails...how can I create these using the dojo build system?&amp;nbsp; And how do these xd files differ?&amp;nbsp; Ultimately I want to use remotely hosted esri api with locally hosted custom widgets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 21:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673586#M62787</guid>
      <dc:creator>DavidHollema</dc:creator>
      <dc:date>2011-12-09T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673587#M62788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey David&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have almost got this working the way I want after going through a couple of the dojo tutorials which were very helpful. &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.6/cdn/"&gt;Using Custom Modules with a CDN&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.6/recipes/app_controller/"&gt;Application Controller&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start a blank site in your IDE and link it to your IIS and run through these. Also in the tutorials make sure to copy the css links and js files from the tutorial sources. In the dojoConfig(or djConfig) I replaced isDebug:true with debugAtAllCosts:true which will let you step through your modules with firebug. I can post some code too if need be. Make sure to put the dojoConfig script tag before the cdn script tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Henry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 23:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673587#M62788</guid>
      <dc:creator>HenryColomb</dc:creator>
      <dc:date>2011-12-09T23:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673588#M62789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Henry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the links...that first one was especially helpful and I'm now running my custom dijit and CDN simultaneously.&amp;nbsp; I have another issue in how my custom dijit is behaving with the attribute inspector (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/45726-Editor-attribute-inspector-default-values?p=156031"&gt;http://forums.arcgis.com/threads/45726-Editor-attribute-inspector-default-values?p=156031&lt;/A&gt;&lt;SPAN&gt;) but at least I'm past step 1.&amp;nbsp; Here's what I ended up doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseUrl: "Scripts/",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modulePaths: { "nrss": "nrss" },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; debugAtAllCosts: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="/Scripts/Overflights.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.form.Button");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.dijit"); // optimize: load dijit layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.BorderContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.StackContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.ContentPane");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.LayoutContainer");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.TitlePane");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("nrss.overflights.dijit.SimpleBehavioralDijit"); //my custom dijit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dojo.parser");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var user = &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'@User.Identity.Name"&gt;'@User.Identity.Name&lt;/A&gt;&lt;SPAN&gt;.Replace('\\','/')';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var overflights = new Overflights(user);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.addOnLoad(function(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflights.initMap();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trick was setting the baseUrl properly and modulePaths correctly.&amp;nbsp; My script folder structure looks like this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;webroot/Scripts/nrss/overflights/dijit/SimpleBehavioralDijit.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not have to go down the xd route at all.&amp;nbsp; Standard, non-xd dijit worked fine.&amp;nbsp; See the link above for source code for dijit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 20:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673588#M62789</guid>
      <dc:creator>DavidHollema</dc:creator>
      <dc:date>2011-12-12T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673589#M62790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Henry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look at my blog 'jpenet.blogspot.com' . I am currently migrating a Silverlight application towards JavaScript based on using MVVM pattern. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Silverlight I used PRISM to have a modular framework. Based on that I idea I am now trying to create a 'ArcMap' light with JavaScript keeping the JavaScript code separated from the web page. As I do this part-time, it will take some time before I can release the whole application. In principle this could be done in the same way in flex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johnny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 15:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673589#M62790</guid>
      <dc:creator>JohnnyPenet</dc:creator>
      <dc:date>2012-04-25T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673590#M62791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am currently migrating a Silverlight application towards JavaScript based on using MVVM pattern. &lt;BR /&gt;In Silverlight I used PRISM to have a modular framework. Based on that I idea I am now trying to create a 'ArcMap' light with JavaScript keeping the JavaScript code separated from the web page.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm happy to hear that you're moving to using the ArcGIS API for JavaScript but I'd like to discourage you from trying to duplicate ArcMap in a browser. Web apps should not strive to duplicate heavyweight desktop clients, even if your goal is a light version. I would instead encourage you to build focused, targeted apps with a specific use in mind. Try to build apps that answers a specific question or addresses a specific problem rather than building something that is a tool for general analysis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673590#M62791</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-25T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673591#M62792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm happy to hear that you're moving to using the ArcGIS API for JavaScript but I'd like to discourage you from trying to duplicate ArcMap in a browser. Web apps should not strive to duplicate heavyweight desktop clients, even if your goal is a light version. I would instead encourage you to build focused, targeted apps with a specific use in mind. Try to build apps that answers a specific question or addresses a specific problem rather than building something that is a tool for general analysis.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While I agree with this both in principle (as a developer) and in theory, unfortunately it does not work in practice.&amp;nbsp; On mobile devices users are willing to tolerate a single use app because they are so fast and lightweight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, on the web, they expect full functionality.&amp;nbsp; Can you imagine from a training standpoint:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want parcels, open this webpage.&amp;nbsp; Oh you want to see Zoning, thats a different app.&amp;nbsp; Oh you want Utilities, app number 3. Measure, Redline, Geocode? apps 4 5 and 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;User = gone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, as soon as we add it all to one app, you get complaints about speed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our app is a slow all in one, so we developed a very light fast specific app.&amp;nbsp; Immediately requests starting pouring in to add everything we had removed to speed it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, for the majority of our users, the specific question or problem they want answered is "how can i do everything that i can do on the desktop on the web for free"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to our slow all in one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mymanatee.org/gisapps/mapviewer/"&gt;http://www.mymanatee.org/gisapps/mapviewer/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 17:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673591#M62792</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-25T17:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673592#M62793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you imagine from a training standpoint:&lt;BR /&gt;&lt;BR /&gt;If you want parcels, open this webpage.&amp;nbsp; Oh you want to see Zoning, thats a different app.&amp;nbsp; Oh you want Utilities, app number 3. Measure, Redline, Geocode? apps 4 5 and 6.&lt;BR /&gt;User = gone.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hear ya. What I'm trying to say is that there's a sweet spot:&amp;nbsp; can (should?) a parcel viewer also show zoning info? Yes, of course. Zoning is a logical addition and usually not more than an additional attribute. Now, does your parcel/zoning viewer app need 20+ additional map services, a TOC to manage them all along with multiple toolbars with map navigation tools that 99% of your users will ignore and probably not understand? I hope the answer is a resounding no.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other features like measuring and geocoding have a place (especially geocoding, most people expect to be able to enter an address and have the map go there) and can usually be included in a simple, easy-to-understand way. I think you run into trouble (and usability issues) when you start adding toolbars and duplicating functionality in your app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Redlining is a different animal as I think it means different things to different people. On the whole, if you're asking people to annotate and/or edit maps/data, I would make that a separate app. Use a simplified, read-only app for public consumption and a more fully-featured (but still not an ArcMap clone!) for things like editing and making custom maps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 19:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673592#M62793</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-25T19:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673593#M62794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I hear ya. What I'm trying to say is that there's a sweet spot:&amp;nbsp; can (should?) a parcel viewer also show zoning info? Yes, of course. Zoning is a logical addition and usually not more than an additional attribute. Now, does your parcel/zoning viewer app need 20+ additional map services, a TOC to manage them all along with multiple toolbars with map navigation tools that 99% of your users will ignore and probably not understand? I hope the answer is a resounding no.&lt;BR /&gt;&lt;BR /&gt;Other features like measuring and geocoding have a place (especially geocoding, most people expect to be able to enter an address and have the map go there) and can usually be included in a simple, easy-to-understand way. I think you run into trouble (and usability issues) when you start adding toolbars and duplicating functionality in your app. &lt;BR /&gt;&lt;BR /&gt;Redlining is a different animal as I think it means different things to different people. On the whole, if you're asking people to annotate and/or edit maps/data, I would make that a separate app. Use a simplified, read-only app for public consumption and a more fully-featured (but still not an ArcMap clone!) for things like editing and making custom maps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Totally agree.&amp;nbsp; We ended up with the all in one app, but with config files to determine what layers/widgets load.&amp;nbsp; (?type=landdevelopment).&amp;nbsp; That way its one app to maintain, limitless config options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So on land development, you get zoning, etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and on utilities you get trash pickup.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also means only one interface to learn/teach, but with customizable options.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 19:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673593#M62794</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-25T19:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Building a modular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673594#M62795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea was not to create a general application, but creating a general GIS JavaScript library that endorse the ArcGis JavaScript API, hiding some of the async functionality, making the job easier for doing application development. I agree that in most cases you have to make a more restricted application. What I am here is doing, is creating an application that can be used for testing the different aspects&amp;nbsp; of the ArcGis JavaScript API and how far you can go with this in web editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having such a tool, as a developer I no longer need a desktop license for simple consulting of data or creating some simple features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm happy to hear that you're moving to using the ArcGIS API for JavaScript but I'd like to discourage you from trying to duplicate ArcMap in a browser. Web apps should not strive to duplicate heavyweight desktop clients, even if your goal is a light version. I would instead encourage you to build focused, targeted apps with a specific use in mind. Try to build apps that answers a specific question or addresses a specific problem rather than building something that is a tool for general analysis.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-a-modular-application/m-p/673594#M62795</guid>
      <dc:creator>JohnnyPenet</dc:creator>
      <dc:date>2012-05-21T13:17:25Z</dc:date>
    </item>
  </channel>
</rss>

