Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
BUI Extensibility framework - AJAX call cancelled — Cloud Customer Connect
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

BUI Extensibility framework - AJAX call cancelled

Accepted answer
29
Views
9
Comments
edited Mar 26, 2020 8:07AM in Agent Desktop 9 comments

Summary

BUI Extensibility framework - AJAX call cancelled

Content

Hi everybody,

I have a pretty basic question but I can't seem to find a solution.

I'm trying to do an AJAX call to an API from within a workspace addin (using the BUI extensibility framework). But everytime the call should fire, my developer tools say that the call is cancelled.

Has anyone done this before?

 

Version

20A

Code Snippet

var xhr = new XMLHttpRequest();
var url = 'https://website.custhelp.com/cc/demo/demo1/value/banana';
            
xhr.open("post", url, true);
xhr.onload = function() {
            var obj = JSON.parse(xhr.responseText);                                        
            console.log(obj);
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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