[SOLVED] Building wiki app but got stuck in the middle

[SOLVED] Building wiki app but got stuck in the middle
0

#1

I am trying with wiki app, but I couldn’t get any response on clicking the button, should I need to add any library?


#2

You haven’t imported jQuery yet.


#3

yup, tried by adding this
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js

then also not working.


#4

The jQuery bits are working but there are other errors as well. You can see error messages in the browser console (you can open it by hitting F12 on your keyboard).

The console says:

Blocked loading mixed active content “http://en.wikipedia.org/w/api.php?callback=jQuery3210165872667302002_1516189980479&action=query&list=search&srsearch=magic&format=json&_=1516189980480”

You should replace http with https in the Wikipedia URL. Codepen blocks content delivered via http.


#5

@kevcomedia Thanks much, its working fine now.


#6

styling is not working for the resultant values of the search, any suggestions please!!