We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

JavaScript API When are the window.external objects available?

Accepted answer
6
Views
2
Comments
edited Feb 28, 2017 9:16AM in Integrations and APIs 2 comments

Content

Hi

I'm having some problems with the Connect Desktop Javascript API. I'm running Javascript within a browser control via the agent desktop.
My problem is that when I'm accessing the external objects (i.e window.external.contact / window.external.incident) either on document.ready or window.load they're blank.
If I add a button on the page and add an onlick and then access the incident or contact objects they're accessable. 

So at what stage or the external objects available?  I'd like to be able to access them on window.load or document.ready......

Thanks
Steve.


HTML snippet


    <div class="row">

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!