<?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: Javascript Spinner with ArcGIS Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40158#M3445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Josh! This is great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 09:27:45 GMT</pubDate>
    <dc:creator>DamienRobinson</dc:creator>
    <dc:date>2015-01-16T09:27:45Z</dc:date>
    <item>
      <title>Javascript Spinner with ArcGIS Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40156#M3443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a custom javascript based viewer. This viewer will allow a user to perform a query, then it zooms to the relevant extent. This aspect is working great. However i'd like to add a jquery spinner when the query is performed and stop it once the extent has been zoomed to.&lt;/P&gt;&lt;P&gt;For whatever reason, I can't get this spinner to work within the script tags of the arcgis javascript viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried various methods using javascript and other libraries. The basic methodology i'm pursuing is to create two functions, one to stop the spinner, the other to hide the spinner. I downloaded the javascript and css files from the following github: &lt;A href="http://ksylvest.github.io/jquery-spin/" title="http://ksylvest.github.io/jquery-spin/"&gt;jQuery Spin&lt;/A&gt;‌ . I have referenced these in the head of the html page. I have placed the following functions in the map viewer script tags.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;function stopSpinner(){&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;$('.spin').spin('hide');&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;};&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;function startSpinner(){&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;$('.spin').spin('show');&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;};&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The startSpinner() function will be called on the same button click as the query operation, the stopSpinner() would be called immediately after a getExtent call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any issues with using jquery and the arcgis javascript api ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 15:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40156#M3443</guid>
      <dc:creator>DamienRobinson</dc:creator>
      <dc:date>2015-01-15T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Spinner with ArcGIS Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40157#M3444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you're using the esri API I'll point you towards the quick and easy dojo solution: &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojox/widget/Standby.html" title="http://dojotoolkit.org/reference-guide/1.10/dojox/widget/Standby.html"&gt;dojox.widget.Standby — The Dojo Toolkit - Reference Guide&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 18:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40157#M3444</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2015-01-15T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Spinner with ArcGIS Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40158#M3445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Josh! This is great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 09:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-spinner-with-arcgis-javascript-api/m-p/40158#M3445</guid>
      <dc:creator>DamienRobinson</dc:creator>
      <dc:date>2015-01-16T09:27:45Z</dc:date>
    </item>
  </channel>
</rss>

