<?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: What if Portal could not be connected in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577913#M53975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know its not ideal, but I would use &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;console.dir(portal) before the load event call to sniff it and see if there is an undocumented error method&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 12:18:14 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-03-17T12:18:14Z</dc:date>
    <item>
      <title>What if Portal could not be connected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577912#M53974</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;I'm dealing with the Portal Item of the JS-API 3.8. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works very well, but I'm trying to build in some error-handling functionality. What if the Portal is not reachable at connection time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
portal = new esri.arcgis.Portal(displayOptions.portalUrl);
portal.on('load', loadPortal);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the portal is not reachable "loadPortal" never gets called. How can I implement an error message, that the connection to the portal could not be established. I'm missing an "onError" - Event on the portal-Item...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 08:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577912#M53974</guid>
      <dc:creator>R_Spitzer</dc:creator>
      <dc:date>2014-03-17T08:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: What if Portal could not be connected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577913#M53975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know its not ideal, but I would use &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;console.dir(portal) before the load event call to sniff it and see if there is an undocumented error method&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 12:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577913#M53975</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-03-17T12:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: What if Portal could not be connected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577914#M53976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for the hint. But I can't find any undocumented function, which gives a functionality like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody else an idea about this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-if-portal-could-not-be-connected/m-p/577914#M53976</guid>
      <dc:creator>R_Spitzer</dc:creator>
      <dc:date>2014-03-21T09:46:41Z</dc:date>
    </item>
  </channel>
</rss>

