I’ve got a few beginner problems. I haven’t yet tried the search function, I am just trying to insert the main page and all I get is [object Object].
I haven’t even got a clue how to do the search - I’ve looked at other projects that people have completed but everyone seems to use AJAX and I don’t know AJAX, hence trying to use JSON.
I say I haven’t got a clue but I do know I need to make the following url - https://en.wikipedia.org/w/api.php?action=opensearch&search=XXXXXXXXXXXXXX&limit=10&namespace=0&format=jsonfm which I can do, no problems (well perhaps).
But unlike the past two tasks I cannot find what I need to use to input a title, text, etc - it should be something like:
var text = json.XXXXXXXXX;
But I don’t know what the XXXXXXXX is. There doesn’t seem to be any documentation that assists with this part.
Can anyone point me in the right direction please?