r.spitzeresri-de-esridist

What if Portal could not be connected

Discussion created by r.spitzeresri-de-esridist Employee on Mar 17, 2014
Latest reply on Mar 21, 2014 by r.spitzeresri-de-esridist
Hi,

I'm dealing with the Portal Item of the JS-API 3.8.
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?
My code looks like this:
portal = new esri.arcgis.Portal(displayOptions.portalUrl);
portal.on('load', loadPortal);


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...

Outcomes