I am making the getJSON call and it never seems to get to the callback function - what am I doing wrong? I never see the text “json call was made”
$(document).ready(function(){
$( “#titleText” ).change(function() {
var str = “Input handled was “+ $( this ).val();
console.log( str);
var searchURL = “https://en.wikipedia.org/w/api.php?format=json&action=query&titles=”+$( this ).val()+”&prop=revisions&rvprop=content&callback=?”;
console.log ("Calling getjson with "+ searchURL);
$.getJSON(searchURL ,function(data) {
console.log(“jason call was made”);
});
console.log(“After the json call, at the end of the event handler”);
});
});