<?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: checking if a service is availible in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58415#M5152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample I threw together to test whether or not a dynamic map service was available or not.&amp;nbsp; You should use the Firebug console or something like that to see what is happening.&amp;nbsp; This checks to see if the layer has loaded with triggers to let a user know that the layer is taking time to load.&amp;nbsp; Also, it will detect if the layer has loaded and there are intermittent problems with the layer getting images from the server.&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nwdemo1.esri.com/js/various/testLayerLoad2.htm"&gt;http://nwdemo1.esri.com/js/various/testLayerLoad2.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 17:19:46 GMT</pubDate>
    <dc:creator>ScottMoore__Olympia_</dc:creator>
    <dc:date>2010-12-29T17:19:46Z</dc:date>
    <item>
      <title>checking if a service is availible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58412#M5149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to detect if a service is available to avoid having the map wait for a service that may never respond. On occasion the service that my code points to has been known to not respond to my request and in these instances I would like to report this issue to the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 13:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58412#M5149</guid>
      <dc:creator>GavinTrowles</dc:creator>
      <dc:date>2010-10-25T13:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: checking if a service is availible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58413#M5150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps you could develop a web service which uses the SOM in order to ascertain information with regards to the services?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 14:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58413#M5150</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2010-12-29T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: checking if a service is availible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58414#M5151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Is there anyway to detect if a service is available to avoid having the map wait for a service that may never respond. On occasion the service that my code points to has been known to not respond to my request and in these instances I would like to report this issue to the user.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried to use onLayerAddResult(layer, error). by testing if error ==null, you will know if the layer add successfully.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 16:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58414#M5151</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2010-12-29T16:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: checking if a service is availible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58415#M5152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample I threw together to test whether or not a dynamic map service was available or not.&amp;nbsp; You should use the Firebug console or something like that to see what is happening.&amp;nbsp; This checks to see if the layer has loaded with triggers to let a user know that the layer is taking time to load.&amp;nbsp; Also, it will detect if the layer has loaded and there are intermittent problems with the layer getting images from the server.&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nwdemo1.esri.com/js/various/testLayerLoad2.htm"&gt;http://nwdemo1.esri.com/js/various/testLayerLoad2.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58415#M5152</guid>
      <dc:creator>ScottMoore__Olympia_</dc:creator>
      <dc:date>2010-12-29T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: checking if a service is availible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58416#M5153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We use SilverLight and what we do is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) For layers we use that are required, i.e. the application will not function without it, we add an attached property to the XAML that indicates that the layer is required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) In the application unhandled exception handler, we check to see if the exception is related to a layer load issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) If the exception relates to a layer load issue and the layer is required then we fail the application and inform the user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) If the exception relates to a layer load issue and the layer is not required then we eat the exception and simply log the error&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 18:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/checking-if-a-service-is-availible/m-p/58416#M5153</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2010-12-29T18:33:39Z</dc:date>
    </item>
  </channel>
</rss>

