Need help with my Wikipedia viewer

Need help with my Wikipedia viewer


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”

$( “#titleText” ).change(function() {
var str = “Input handled was “+ $( this ).val();
console.log( str);
var searchURL = “”+$( 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”);


Hey, I made a copy of your code and it seems to be working, have a look

BTW I am creating online study groups, have a look