<?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: Uncaught Error: Bootstrap's JavaScript requires jQuery in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850246#M10791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question for &lt;A href="https://community.esri.com/migrated-users/54450"&gt;Junshan Liu&lt;/A&gt;​, if I want to include the D3js.org library would I use the "jimu/loaderplugins/jquery-loader" in my Widget or would I go another route?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 19:25:45 GMT</pubDate>
    <dc:creator>BrianO_keefe</dc:creator>
    <dc:date>2016-02-10T19:25:45Z</dc:date>
    <item>
      <title>Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850235#M10780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a custom search widget that references jQuery and Bootstrap libraries. The search textbox is a Twitter Bootstrap Typeahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get &lt;SPAN style="color: #e23d39;"&gt;'Uncaught Error: Bootstrap's JavaScript requires jQuery'&lt;/SPAN&gt; in the console when I load webapp/?config=config.json.&amp;nbsp; My init.js resources array looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;resources = resources.concat([&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojo/resources/dojo.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dijit/themes/claro/claro.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.apiUrl + 'esri/css/esri.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojox/layout/resources/ResizeHandle.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'jimu.js/css/jimu.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/scripts/jquery-2.1.1.min.js',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/scripts/typeahead.jquery.min.js',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/scripts/bloodhound.min.js',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/scripts/typeahead.bundle.min.js',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/scripts/bootstrap.min.js',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/css/typeahead.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/css/bootstrap.min.css',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp; window.path + 'widgets/search/css/bootstrap-theme.min.css'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3a0699;"&gt; ]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #303030;"&gt;As you can see, &lt;SPAN style="color: #3a0699; font-family: 'courier new', courier;"&gt;jquery-2.1.1.min.js &lt;/SPAN&gt;precedes &lt;SPAN style="color: #3a0699; font-family: 'courier new', courier;"&gt;bootstrap.min.js &lt;/SPAN&gt;in the array, and yet the error message would indicate that bootstrap is being loaded first. Hitting F5 a few times gets it to load successfully, but this appears random, and obviously is not a solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 00:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850235#M10780</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-14T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850236#M10781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that by added the script tag to into the head section of \client\stemapp\index.html that all of my JQuery errors disappeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript" src="/webapp/widgets/search/scripts/jquery-2.1.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 04:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850236#M10781</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-14T04:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850237#M10782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should also be able to use the jQuery or order loader plugins in the define() block of your widget. I have not tried those personally, but in theory that should be a more maintainable solution b/c you would not have to modify index.html or init.js for each app you want to use this widget in. I don't see any docs on how to use these, but they can be found in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\jimu.js\loaderplugins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that you pass the URLs to jQuery and plugins as a comma separated string as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14316227501336137 jive_text_macro" data-renderedposition="176_8_912_16" jivemacro_uid="_14316227501336137" modifiedtitle="true"&gt;&lt;P&gt;define(['jimu/loaderplugins/jquery-loader!./jquery/jquery-1.7.1.js, jquery/jquery.showLoading.js']. function($) {...});&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could also use Dojo Bootstrap - I have an example of how to do that here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tomwayson/web-appbuilder-bootstrap" title="https://github.com/tomwayson/web-appbuilder-bootstrap"&gt;tomwayson/web-appbuilder-bootstrap · GitHub&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 16:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850237#M10782</guid>
      <dc:creator>TomWayson</dc:creator>
      <dc:date>2015-05-14T16:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850238#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom. I tried your suggestion. Unfortunately when using this method the &lt;SPAN style="color: #3a0699; font-family: 'courier new', courier;"&gt;typeahead.jquery.min.js &lt;/SPAN&gt;library is not loaded. I also tried loading both the JQuery and Typahead libraries using the Jimu loader. This didn't work either, so I've gone back to my nasty hack of index.html.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 22:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850238#M10783</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-17T22:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850239#M10784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;STRONG&gt;loadResources&lt;/STRONG&gt; method doesn't guarantee loading order. If you want to use this method to load resource and keep loading order, you have to use call back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the resources are not shared resources, the suggested way is to use jquery loader in your widget.&lt;/P&gt;&lt;P&gt;If the resources are shared, the suggested way is to put them in &lt;STRONG&gt;libs&lt;/STRONG&gt; folder and load them in &lt;STRONG&gt;libs/main.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 02:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850239#M10784</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2015-05-18T02:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850240#M10785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say "suggested way", where did you find this suggestion? I've had trouble finding this documentation. I can only find this: &lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/add-a-third-party-library.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/add-a-third-party-library.htm"&gt;Use other JavaScript libraries—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 21:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850240#M10785</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-20T21:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850241#M10786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;+1 with Tom : to use bootstrap with dojo, use dojo-bootstrap !&lt;/P&gt;&lt;P&gt;Dojo-bootstrap supports typeahead :&lt;/P&gt;&lt;P&gt;&lt;A href="http://xsokev.github.io/Dojo-Bootstrap/typeahead.html" title="http://xsokev.github.io/Dojo-Bootstrap/typeahead.html"&gt;Typeahead - Dojo Bootstrap&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After referencing dojo-bootstrap in dojoConfig (-&amp;gt; in the wab init.js : you can see it in Tom's example &lt;A href="https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/init.js#L161" title="https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/init.js#L161"&gt;https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/init.js#L161&lt;/A&gt; ), you just have to call what you need in your widgets (in Tom's example : &lt;A href="https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/widgets/BootstrapTest/Widget.js#L11" title="https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/widgets/BootstrapTest/Widget.js#L11"&gt;https://github.com/tomwayson/web-appbuilder-bootstrap/blob/master/src/widgets/BootstrapTest/Widget.js#L11&lt;/A&gt; ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 22:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850241#M10786</guid>
      <dc:creator>JeremieCornet1</dc:creator>
      <dc:date>2015-05-20T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850242#M10787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well &lt;A href="https://community.esri.com/migrated-users/54450"&gt;Junshan Liu&lt;/A&gt;​ is one of the core developers of the WAB, and since he "suggested" that approach in the above forum post, it's now the "suggested way."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 23:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850242#M10787</guid>
      <dc:creator>TomWayson</dc:creator>
      <dc:date>2015-05-20T23:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850243#M10788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry for that I don't make this thing clear. I try to make it more clear here:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;libs&lt;/STRONG&gt; folder is for putting your shared 3rd party libs. "Shared" here means shared by more than one widgets, or by your themes or widgets.&lt;/P&gt;&lt;P&gt;2. The resources in the "&lt;STRONG&gt;resources&lt;/STRONG&gt;" array will be loaded before/at the same time/after(because loadResource method will not ensure the loading order) with dojo/JSAPI&lt;/P&gt;&lt;P&gt;3. Resources depended by &lt;STRONG&gt;libs/main&lt;/STRONG&gt; will be loaded after resources in the resources array(including JSAPI) are loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can make decision about where you put your resource. Please replay if this post is still not clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 02:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850243#M10788</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2015-05-21T02:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850244#M10789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jeremie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to use the Dojo Bootstrap Typeahead since you made me aware of it. I've got it half working. I can get a list of items to show, but I can't figure out how to get the selected value when a list item is clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've pasted in a code fragment below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that the 'change' event fires twice. The first time event.currentTarget.value is the string that was typed into the input. The second time it is the value that was selected from the drop down list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue I have with the typeahead is that the process function only takes an array of strings. If pass it an array of objects like below, how do I get the address to display and, assuming that's possible, how do I get the parcelId when the item is selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "address":"10 Woodleigh Street",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "locality":"Frankleigh Park",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "parcelId":4648447&lt;/P&gt;&lt;P&gt;}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that half works and displays an address when an array of strings is passed to process(), but fires the 'change' event twice when a list item is clicked.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/SPAN&gt; q = dojo.query;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q(&lt;SPAN style="color: #a31515;"&gt;'#searchText'&lt;/SPAN&gt;).typeahead({&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; minLength: 5,&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; source: &lt;SPAN style="color: blue;"&gt;function&lt;/SPAN&gt; (query, process) {&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;return&lt;/SPAN&gt; xhr(&lt;SPAN style="color: #a31515;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/SearchWebAPI/api/searchitem/1/" rel="nofollow" target="_blank"&gt;http://localhost/SearchWebAPI/api/searchitem/1/&lt;/A&gt;&lt;SPAN&gt;?"&lt;/SPAN&gt;&lt;/SPAN&gt; + $.param(widget._searchLayers) + &lt;SPAN style="color: #a31515;"&gt;'&amp;amp;q='&lt;/SPAN&gt; + query,&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { handleAs: &lt;SPAN style="color: #a31515;"&gt;'json'&lt;/SPAN&gt;, headers: { &lt;SPAN style="color: #a31515;"&gt;'X-Requested-With'&lt;/SPAN&gt;: &lt;SPAN style="color: #a31515;"&gt;''&lt;/SPAN&gt; } })&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(&lt;SPAN style="color: blue;"&gt;function&lt;/SPAN&gt; (data) {&lt;/P&gt;&lt;P&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;&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;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; dataArray = [];&lt;/P&gt;&lt;P&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;&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;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;for&lt;/SPAN&gt; (&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; i = 0; i &amp;lt; data.length; i++) {&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; (data&lt;I&gt;.address) {&lt;/I&gt;&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataArray.push(data&lt;I&gt;.address);&lt;/I&gt;&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&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;&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;&amp;nbsp; }&lt;/P&gt;&lt;P&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;&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;&amp;nbsp; process(dataArray);&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }).on(&lt;SPAN style="color: #a31515;"&gt;'change'&lt;/SPAN&gt;, &lt;SPAN style="color: blue;"&gt;function&lt;/SPAN&gt; (event) { &lt;SPAN style="color: #eb7a3d;"&gt;&lt;STRONG&gt;// fires twice&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; val = event.currentTarget.value;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 02:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850244#M10789</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-22T02:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850245#M10790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if put my jQuery library reference in the &lt;EM&gt;resources&lt;/EM&gt; array in &lt;EM&gt;\client\stemapp\init.js&lt;/EM&gt; and put my libraries that depend on jQuery, like Bootstrap, in &lt;EM&gt;\client\stemapp\libs\store&lt;/EM&gt; and add a reference to those libraries in the &lt;EM&gt;define&lt;/EM&gt; of &lt;EM&gt;\client\stemapp\libs\main.js&lt;/EM&gt;, will this force jQuery to load before Bootstrap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 02:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850245#M10790</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-05-22T02:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: Bootstrap's JavaScript requires jQuery</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850246#M10791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question for &lt;A href="https://community.esri.com/migrated-users/54450"&gt;Junshan Liu&lt;/A&gt;​, if I want to include the D3js.org library would I use the "jimu/loaderplugins/jquery-loader" in my Widget or would I go another route?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 19:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/uncaught-error-bootstrap-s-javascript-requires/m-p/850246#M10791</guid>
      <dc:creator>BrianO_keefe</dc:creator>
      <dc:date>2016-02-10T19:25:45Z</dc:date>
    </item>
  </channel>
</rss>

