Closed mbrien12 closed 7 years ago
Search = create input, use 'keyup' to save as variable..? Will try that!
1 hour on main set up and experimenting with first api calls - need to make sure SearchRequest var is being stored properly and onClick function works - needs to call the API and display list on page. Setup is there but not working so needs some investigating and tweaking
Can't save selected option of autocomplete 😡 Looks like need to use select option
Now storing variable but onclick function not working - maybe because of two ajax calls..?
Now prints links to page but submit button doesn't work - must conflict with 'select' event.
Can use any libraries or APIs I need
Hints URL for using Wikipedia API https://www.mediawiki.org/wiki/API:Main_page
URL for random entries https://en.wikipedia.org/wiki/Special:Random
Sandbox for experimenting https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=jsonfm