mbrien12 / learning-2017

Place for all my tutorial and practice work, with learning resources, plan and backlog
1 stars 1 forks source link

FCC Projects - Wikipedia Viewer #40

Closed mbrien12 closed 7 years ago

mbrien12 commented 7 years ago

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

mbrien12 commented 7 years ago
mbrien12 commented 7 years ago

Search = create input, use 'keyup' to save as variable..? Will try that!

mbrien12 commented 7 years ago

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

mbrien12 commented 7 years ago

Can't save selected option of autocomplete 😡 Looks like need to use select option

mbrien12 commented 7 years ago

Now storing variable but onclick function not working - maybe because of two ajax calls..?

mbrien12 commented 7 years ago

Now prints links to page but submit button doesn't work - must conflict with 'select' event.