<?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: are there better ways to call Js API modules in a Jquery Widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44750#M3878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have fewer dependence this way, since you'll only be loading only the modules you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine using the older style, you're loading everything, even if you're only using a small number of classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 23:18:04 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2017-06-20T23:18:04Z</dc:date>
    <item>
      <title>are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44745#M3873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently upgrade a jquery ui widget to use Js API 4.x. I was using Js API 3.x in my widget, since the 3.x support legacy code, i could call a module or class easily; for example, this.locationGraphic=new esri.Graphic(center, symbol, feature.attributes, infotemplate). The 4.x no longer support legacy code, l have to load those AMD module into the widget, which is not simple. I could pass those class or module parameters into my widget to avoid loading. But it is a long list. Is there any better ideas or simple ways to do it?(Any ideas are welcome:))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44745#M3873</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-20T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44746#M3874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;l have to load those AMD module into the widget, which is not simple&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is not simple about that? Just like you have your requires in your main js code you just define the modules in your custom widget code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44746#M3874</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-20T20:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44747#M3875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 data-reactid=".12mt6dluoe8.1.0" style="color: #999999; border: 0px; font-weight: 400; font-size: 20px; margin: 0px 0px 15px;"&gt;Robert,&lt;/H3&gt;&lt;H3 data-reactid=".12mt6dluoe8.1.0" style="color: #999999; border: 0px; font-weight: 400; font-size: 20px; margin: 0px 0px 15px;"&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;I don't know if there are better way to load, which is why i am asking this question. I don't need to load those module in 3.x. when i create a graphic, i could just call in my widget code&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;var graphic=new esri.Graphic(....); now i have to pass the parameter like the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;require(["esri/Graphic",...], function(Grapic){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; view.then(function () {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//load the portal tool kit&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$('#tool').location_portal({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;view: view,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;movable: true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Graphic: Graphic&amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 data-reactid=".12mt6dluoe8.1.0" style="color: #999999; border: 0px; font-weight: 400; font-size: 20px; margin: 0px 0px 15px;"&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;Maybe i did it wrong way, just ask here to see if there are better or correct ways to do it&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44747#M3875</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-20T21:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44748#M3876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No there is not a simpler or better way that is the AMD module way of doing things. You were able to by pas this in the past because of Legacy coding style but now in 4.x Legacy is not supported so you are required to load all modules using AMD style coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44748#M3876</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-20T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44749#M3877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know 4.x is AMD only. So i am aware of that. Just don't want my jquery widget have too many dependencies, maybe i will bypass, using Jquery.trigger() to pass JSON object and let hosting page to deal with JSON uing API. Thanks for answering my question. It is indeed helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:47:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44749#M3877</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-20T21:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44750#M3878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have fewer dependence this way, since you'll only be loading only the modules you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine using the older style, you're loading everything, even if you're only using a small number of classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 23:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44750#M3878</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-20T23:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: are there better ways to call Js API modules in a Jquery Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44751#M3879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when working with 3.x, i don't need to load any modules, because the hosting page already include the API link, i only need to use legacy code when i created instance of a class. now, i have to pass module to my widget. that is what i mean. Thanks for response anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-there-better-ways-to-call-js-api-modules-in-a/m-p/44751#M3879</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-21T13:53:33Z</dc:date>
    </item>
  </channel>
</rss>

