The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Hello, all
Ok, I am completely stumped. I have spent hours watching videos, following tutorials, tinkering with both my IIS server, the webconfig file on the IIS server, and my code itself. I have just been spinning my wheels so I come begging for help!
I made a webapp using HTML and Javascript making API calls via AJAX. Below is my Javascript code. What am I missing? Any help is greatly appreciated.
var API_Key = "MyAPIKEY";
function courseSearchID(){
var CourseID = document.getElementById("courseName").value;
console.log("Course Id:" + CourseID);
var available = {
"url": "https://[myDomain]/api/v1/courses/sis_course_id:" + CourseID +"?access_token="+API_Key,
"default":{
"dataType": "jsonp",
"type": "GET",
"contentType": "Application/json",
"crossDomain": true,
"Access-Control-Allow-Origin": "*",
}}
$.ajax(available).done(function (response) {
console.log(response);
var contentname = response.name;
var content = response.workflow_state;
$("#available").append("Course Name: ").append(contentname).append("<br>Status: ").append(content);
console.log("Course Availability");
})
Solved! Go to Solution.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in