Need help with my Wikipedia viewer

Need help with my Wikipedia viewer
0

#1

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”);
});
});


#2

Hey, I made a copy of your code and it seems to be working, have a look https://www.diffschool.com/questions/need-help-with-my-wikipedia-viewer

BTW I am creating online study groups, have a look http://forum.freecodecamp.com/t/online-study-group-for-different-time-zones/49226