Streaming live at 10am (PST)

Ajax call to external API

In the body tag we are using the following code (which works outside of webflow). However it doesn’t work in webflow. Can anyone see what’s going wrong?

$(document).ready(function () {
        url: "",
        success: function (data) {
            var stopList = "";
            for (var i = 0; i < data.length; i++) {
                stopList += data[i].StopName +"<br/>";
        error: function(a,b,c) {

Do you see any console errors?

Error message is

XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

This is because XML cannot be loaded from another website using AJAX as there are cross-domain restrictions. You will need to find a JSON resource on that site to load instead.