I’m currently stumped on how to get $.ajax() to work. What else do I need to add to the ajax request to make it work? The ajax function is not calling the success() or the error() function and is failing silently.
I’ve been looking through stackoverflow posts and FCC topics on the Wikipedia Viewer/ Wikipedia API. I think I’ve managed to find the correct API request.
For Example, GET ‘https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&titles=&srsearch=hello+world’ succeeds in the browser, but not through AJAX.