<?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 dojox.charting.Chart and dijit.form.Forms both undefined in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404972#M37281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble accessing some of the features of Dojo via the ESRI js.&amp;nbsp; I have used several links to no avail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/" title="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://js.arcgis.com/3.10/" title="http://js.arcgis.com/3.10/"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;‌&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://js.arcgis.com/3.10/" title="http://js.arcgis.com/3.10/"&gt;http://js.arcgis.com/3.11/&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use dijit.form.Form I hit an undefined error.&amp;nbsp; I notice that this is not referenced in any of the above links.&amp;nbsp; I resolved this problem by using dijit.layout.ContentPane.&amp;nbsp; Notably I could use dijit.form.Button and dijit.form.TextBox so it is not an issue with dijit.form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am hitting a similar error with dojox.charting however I do not appear to be able to hit dojox.charting at all.&amp;nbsp; Once again I notice that it is not referenced in the linked Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have minimal HTML scripting as I am building nearly everything programatically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" rel="nofollow" target="_blank"&gt;http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.11/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Javascript looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global esri*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dojo*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dijit*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dojox*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;function createLineChart(startMeasure, elevations) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var lineChart = new dojox.charting.Chart("simplechart");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addPlot("default", {type: "Lines"});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addAxis("x");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addAxis("y", {vertical: "true"});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addSeries("SERIES X", elevations);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.render();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The error is on the first line of the function where Chart is undefined, charting is also undefined as is Chart2D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am perplexed as to why everything else works but I do not seem to be hit a number of functions from the Dojo toolkit when I can use other functions in the same namespace. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 03:53:55 GMT</pubDate>
    <dc:creator>HenryColgate</dc:creator>
    <dc:date>2014-10-07T03:53:55Z</dc:date>
    <item>
      <title>dojox.charting.Chart and dijit.form.Forms both undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404972#M37281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble accessing some of the features of Dojo via the ESRI js.&amp;nbsp; I have used several links to no avail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/" title="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://js.arcgis.com/3.10/" title="http://js.arcgis.com/3.10/"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;‌&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://js.arcgis.com/3.10/" title="http://js.arcgis.com/3.10/"&gt;http://js.arcgis.com/3.11/&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use dijit.form.Form I hit an undefined error.&amp;nbsp; I notice that this is not referenced in any of the above links.&amp;nbsp; I resolved this problem by using dijit.layout.ContentPane.&amp;nbsp; Notably I could use dijit.form.Button and dijit.form.TextBox so it is not an issue with dijit.form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am hitting a similar error with dojox.charting however I do not appear to be able to hit dojox.charting at all.&amp;nbsp; Once again I notice that it is not referenced in the linked Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have minimal HTML scripting as I am building nearly everything programatically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" rel="nofollow" target="_blank"&gt;http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.11/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Javascript looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global esri*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dojo*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dijit*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*global dojox*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;function createLineChart(startMeasure, elevations) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var lineChart = new dojox.charting.Chart("simplechart");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addPlot("default", {type: "Lines"});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addAxis("x");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addAxis("y", {vertical: "true"});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.addSeries("SERIES X", elevations);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineChart.render();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The error is on the first line of the function where Chart is undefined, charting is also undefined as is Chart2D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am perplexed as to why everything else works but I do not seem to be hit a number of functions from the Dojo toolkit when I can use other functions in the same namespace. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 03:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404972#M37281</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2014-10-07T03:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.charting.Chart and dijit.form.Forms both undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404973#M37282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart and Form are included in the Javascript API. &lt;A href="http://js.arcgis.com/3.10/js/dojo/dojox/charting/Chart.js" title="http://js.arcgis.com/3.10/js/dojo/dojox/charting/Chart.js"&gt;http://js.arcgis.com/3.10/js/dojo/dojox/charting/Chart.js&lt;/A&gt; , &lt;A href="http://js.arcgis.com/3.10/js/dojo/dijit/form/Form.js" title="http://js.arcgis.com/3.10/js/dojo/dijit/form/Form.js"&gt;http://js.arcgis.com/3.10/js/dojo/dijit/form/Form.js&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you require them before using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo.require("&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;dojox.charting.Chart&lt;/SPAN&gt;");&lt;/P&gt;&lt;P&gt;dojo.require("dijit.form.Form");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 04:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404973#M37282</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-10-07T04:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.charting.Chart and dijit.form.Forms both undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404974#M37283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I have managed to get away with not using "dojo.require" at all in my project.&amp;nbsp; My understanding was that including lines like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;/*global dojox*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;should be the same as require. Relatively new to Javscript at the moment so am quite likely making basic errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I tried including &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;dojo.require("&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;dojox.charting.Chart&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the first line of the createLineChart function with no success but not sure if that is the right place to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 04:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404974#M37283</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2014-10-07T04:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.charting.Chart and dijit.form.Forms both undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404975#M37284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anything in between /* */ is a comment and is not used during runtime. &lt;A href="http://www.w3schools.com/js/js_comments.asp" title="http://www.w3schools.com/js/js_comments.asp"&gt;JavaScript Comments&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;The reason you got away with not using requires is because &lt;A href="http://js.arcgis.com/3.10/" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank" title="http://js.arcgis.com/3.10/"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;&amp;nbsp; already requires few modules like button, contentPane etc.&lt;/P&gt;&lt;P&gt;Since you are new to javascript i would recommend you start using AMD straight way instead of legacy dojo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;dojo.require("&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;dojox.charting.Chart&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;"); var chart = new dojox.charting.Chart(); &lt;STRONG&gt;is legacy&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;require&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #999999;"&gt;"dojox/charting/Chart&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #999999;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;Chart&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;{ var chart = new Chart(); }); &lt;STRONG&gt;is AMD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these samples at &lt;A href="https://developers.arcgis.com/javascript/jssamples/map_simple.html" title="https://developers.arcgis.com/javascript/jssamples/map_simple.html"&gt;Create a map | ArcGIS API for JavaScript&lt;/A&gt; you can get fair bit of understanding on using AMD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 05:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404975#M37284</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-10-07T05:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.charting.Chart and dijit.form.Forms both undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404976#M37285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 05:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-charting-chart-and-dijit-form-forms-both/m-p/404976#M37285</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2014-10-07T05:30:57Z</dc:date>
    </item>
  </channel>
</rss>

