function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DHYoungDHYoung 

synchronous mode init() for posting a "connecting..." message to user...?

Is it possible to execute the init() session with salesforce so that it's performed synchronously?
I'd like to post a "connecting..." div/pop-up that gets removed as soon as the connection is
established.   Or am I barking up the wrong the wrong three because there's a better way of
doing this?
 
thx, David
 
re:
sforceClient.registerInitCallback(this.callback);
sforceClient.init(this.sessionId, this.serverUrl);
Ron HessRon Hess
you can show a "connecting ... " div right before calling the async function
sforceClient.init(this.sessionId, this.serverUrl);


then in your this.callback, you would hide that div.