Build a Wikipedia Viewer - API help, not found message

Build a Wikipedia Viewer - API help, not found message
0

#1

Hi, please, can you help me with JavaScript/JSON API?

In wiki viewer, when the search phrase is not found, I don’t know how to show “Not found” message… Now I deleted all unsuccessful pieces of code, but I tried a lot stuff… Any ideas please?


#2

When your information returns in the variable x, you can first to see how many elements it returned, in other words see how large the array x.query.search is.


#3

Also, you’re getting an error in your browser console because you’re loading the bootstrap before JQuery.