How to make an api call using jQuery & ajax based on user input (pt. 1)

preview_player
Показать описание
This is Part 1
In this video, I walk you through how to build your own search engine to interact with the Giphy API. I walk you through how to dynamically query the api based off of the user input in the search field - using jQuery's .val() and .ajax() methods.

I then show you how to view the response data, parse it and display images on the screen based off of the returned JSON.
Рекомендации по теме
Комментарии
Автор

i dont understand why cant i access the object and with dot notation the sub eleelments ...like res.Search.Tilte?..i get res undefined?
i dont understand Lisa

pjmclenon
Автор

hello how do you out put more than just 10 out of the actual 573 retrieved results plz?..Lisa

pjmclenon
Автор

hello when i try the i asa index and e as element vaibles or bult in methos, on another API it doesnt work
are these specifif to this API? I DONT THINK SO BUT HOW DO I USE THESE AND ALSO AS MY OTHER COMMENT SYAYS HOW DO I EASILY access the main json object and the other inner elements?...Lisa thxz

pjmclenon
Автор

ok i see how you use the dot notation to access the inner properties...its at the e.Year inside the $.each function or methos of the code at 9 31 ..ok thxz Lisa

pjmclenon
Автор

i am not getting the html output at 6 54 ..you dont expalin what you did ..i get nothing just the alert box ..your code is missing brackets and braces but tstillworks...not good Lisa

pjmclenon
Автор

barry do you have the code pen or GitHub address for this example? Would be very helpful....Thanks

t-consult
Автор

nothing works when i press submit and i do not get the alert box Lisa

pjmclenon
Автор

i had to writw the code from part 2 at the beginng and then its owking and so i willwatch part 2 but but sory thsi is very diffucult way to teach your lesson its not clear and contious sorry Lisa

pjmclenon
visit shbcf.ru