Wikipedia Search API Javascript AJAX call GET

preview_player
Показать описание
Grab something from Amazon to help me out:

This is to show you how to use get request.

This is a tutorial about how to create your own wikipedia search with the wikipedia search api.

Technologies Used:
jquery

source code
Рекомендации по теме
Комментарии
Автор

Cheers, that was an excellent quick example for using the wikipedia mediawiki API. Much appreciated

JMSTipsAndTricks
Автор

Hey Jason, very nice video, thanks! Quick question: whenever I am looking up more than one wikipedia entry it seems that the old search gets stored and the new one just added on top of the old results. Do you know how to avoid that!? Cheers!

marcuszierke
Автор

6:34 where did you copy that from? the url i mean, is that from the api sandbox?

nguyenpham
Автор

why do you use class="btn-primary" on div in prepend? I tried it in myself, but it does not work. I found that it should work only on 'button', 'a' and 'input' elements. Why does it work in your code?

Benas
Автор

was working on the same project, and wanted to get the main image from the wiki article to display as well did you figure out how to query the API for the image?

ErikCohenDev
Автор

Great video, but maybe next time try hitting "ctrl + shift + i". There was a lot of tabbing to open up the dev console.

maxwibert
Автор

I am not sure if it is me, but it does sound like you require a better mic. Having brief explanations as to what you are doing is always useful- sadly I could hardly hear you. Helpful video though.

Kazeumi
Автор

can you tell me how to change the language of the content retrieved. I have searched the entire web and no result. please immediate help needed

MrZAKisawesome
Автор

great video! i was looking for a way to call a webservice with js (ajax, jquery)

KMemo
Автор

how did u know to use the "open search" parameter and the wiki page doesnt even hav the "search=" parameter in their documentation

prakashyadav
Автор

How can i change the language of retrieved content using language api. I want my select tag in HTML to change languages?
PLZZZ HELP

darvinkumar
Автор

good tutorial, but your microphone was too quit.. you should explain more what you do

to the code: if you put all the ajax code outside of the jquery functions you wont need to copy/paste it for the kreypress event:
(e) {
if (e.keyCode === 13) {
getwiki(); // it has all the things with var searchTerm and the ajax

}
});

jk-xv
Автор

Hi I'am working on my own project similar to this but I need help creating the search result. Can you please give me your email so I can send you the files and you can help me with it?

zenofficial
Автор

Thanks! It looks nice but you could use a submit function, couldn't you?

$("form").submit(function(){


return false;
});

boredexill
join shbcf.ru