jQuery Crash Course [5] - Ajax

Поделиться
HTML-код
  • Опубликовано: 17 сен 2016
  • In this video we will work with the load, $.get, $.post and $.ajax methods in jQuery
    My 10 Project jQuery/JS Course - www.eduonix.com/affiliates/id...
    Project Files - github.com/bradtraversy/jquer...
  • НаукаНаука

Комментарии • 123

  • @ajpentester4821
    @ajpentester4821 2 года назад +7

    Yet years later, it is gold.. Thank you Brad.

  • @sandeepraul7261
    @sandeepraul7261 6 лет назад +18

    AJAX with JQuery - this is the simplest video i have ever seen... thank you!

  • @SWB2MASTER
    @SWB2MASTER 7 лет назад +17

    Hi Brad, great series, I will definitely recommend this to anyone that needs to learn jQuery quick. A quick note for anyone that gets stuck in the beginning of this video with the error "Uncaught ReferenceError: $ is not defined", make sure that you are loading jQuery from the cdn and not locally. node is looking for the file in 127.0.0.1 and not your directory. If you follow instructions on part 1 of this series correctly, you won't run into this issue.

  • @jamesmuriuki3785
    @jamesmuriuki3785 5 лет назад +7

    I always thought Jquery was hard because of some weird selector stuff until I came across this resource. Thanks, Brad it has been awesome!!!

  • @twanus2657
    @twanus2657 4 года назад +14

    Just finished the playlist.
    Thank u, kind sir.

  • @devtest8078
    @devtest8078 4 года назад +1

    As always, great videos Brad. Greatly appreciated. Thanks

  • @johnson554671
    @johnson554671 2 года назад

    Thank you for this jQuery tutorial series Brad. This complements my Javascript Class well and watched all 5 videos which are easy to follow in one day.

  • @user-vk7db1rg2q
    @user-vk7db1rg2q 4 месяца назад

    Dude, you are awesome. I had to learn jQuery by myself (it was a task of self-study) and you made it easy as chips in the ninja. Thank you!

  • @lopsidedboy
    @lopsidedboy 5 лет назад

    I subscribed long before I finished the first couple parts of this tutorial. Thank you, Brad.

  • @spicytuna08
    @spicytuna08 6 лет назад

    you just cleared out confusion i had which was bugging me for a long time. you have a remarkable attitude which is very rare in this profession, unfortunately. thanks.

  • @blueballedtech
    @blueballedtech 5 лет назад

    This is the best guide on the subject I've seen. Why do other people explain it with so much abstraction? It's almost like they don't want you to know how ajax works

  • @catherineliu1850
    @catherineliu1850 4 года назад

    Appreciate for your great help. I am an entry level learner for the full stack development. I was stuck at how to send the data from back end to front end or front end to back end. Your jquery series really help me to solve this problem. I am willing to donate!

  • @DanielByun92
    @DanielByun92 7 лет назад +30

    wow man. this is dope. i dont need to do codecademy on jquery anymore lmao

  • @narayanareddy15
    @narayanareddy15 3 года назад +1

    finished the playlist, thank you brad!❤

  • @da80
    @da80 7 лет назад

    All your videos are absolutely awesome!!!

  • @kubataiupov1245
    @kubataiupov1245 2 года назад

    Thank You!!! The best explanation I have had till now!

  • @justkdding
    @justkdding 4 года назад

    thanks for the playlist... long live Brad Traversy !!

  • @mirelasemanjaku
    @mirelasemanjaku 4 года назад

    Very easy to follow and understand! Great work!

  • @joselorenzini4196
    @joselorenzini4196 Год назад

    Ofcourse traversy media has a jquery ajax course, bro you are a legendario legend!

  • @KamronPhray
    @KamronPhray 6 лет назад +1

    Omg, you are really awesome. Thank you for what you are doing, really!

  • @samueltorres2485
    @samueltorres2485 6 лет назад

    Your vids are always dope!

  • @stingvii3805
    @stingvii3805 7 лет назад

    Thankyou again...Completed the series

  • @kalabaayev
    @kalabaayev 2 года назад

    This tutorial was very useful. Thanks for making such cool crash courses.

  • @iiana3393
    @iiana3393 7 лет назад +16

    I have watched some other popular JQuery courses, yours is the best at least for me. I am definitely going to check out your 10 project course. Thanks for the awesome channel.

  • @sayedakbarali5650
    @sayedakbarali5650 7 лет назад +1

    Thanks for this new course

  • @nirajbhanushali7693
    @nirajbhanushali7693 4 года назад

    your hard work still used in 2020 lockdown thank you

  • @nickeax
    @nickeax 7 лет назад

    I'll be purchasing your 10 project course mate. This is fantastic work, thanks.

    • @TraversyMedia
      @TraversyMedia  7 лет назад

      Thank you sir. Im glad you liked it. Thanks for watching

  • @Hashmimohammed
    @Hashmimohammed 7 лет назад

    this is simply awesome ... superb

  • @arshadsarkarhanif
    @arshadsarkarhanif 3 года назад

    thank you brad! I have completed full playlist

  • @mohamedeyadbadran3450
    @mohamedeyadbadran3450 Год назад

    Amazing Course Thank you for your great explination

  • @deepikamewada680
    @deepikamewada680 Год назад

    Very nice explanation. Thanks for it.

  • @ahmedkorim6420
    @ahmedkorim6420 6 лет назад

    I am amazed at this great course thx bro

  • @manoliszaimakis273
    @manoliszaimakis273 5 лет назад +1

    Really helpful video, thanks

  • @limitless0032
    @limitless0032 3 года назад

    Amazing teaching , thanks.

  • @it-learner5701
    @it-learner5701 3 года назад

    watching 2021. Thank yu Brad

  • @nilufar4983
    @nilufar4983 6 лет назад +1

    thanks for video ❤❤❤I like it so much . it's pretty awesome )))))

  • @rajabmuhamedrajab5128
    @rajabmuhamedrajab5128 Год назад

    الحمدلله تم الانتهاء 💜

  • @NurzulHealme
    @NurzulHealme 6 лет назад +2

    Thank You!! Very much for all video..

  • @arbazkhan-od9sk
    @arbazkhan-od9sk 6 лет назад

    thank you very much brad ill try and get u more students to eduonix and youtube as well.....

  • @boschierob
    @boschierob 3 года назад

    Very fine. Many thanks!

  • @danielrgh
    @danielrgh 2 года назад

    Very Good Course Good luck

  • @odeddugma9748
    @odeddugma9748 3 года назад

    Thanks for wonderull content!

  • @kiransahu157
    @kiransahu157 5 лет назад

    Thanks for this course

  • @BipinOli90
    @BipinOli90 7 лет назад +1

    Thanks for this :)

  • @nasirhussain6959
    @nasirhussain6959 3 года назад

    nice of way of teaching....thanks

  • @premier69
    @premier69 7 лет назад

    Thank you very much for your hard work!

  • @MenAtWorkMedia22
    @MenAtWorkMedia22 7 лет назад +1

    Thank you!

  • @hassanOnYoutube
    @hassanOnYoutube 2 года назад

    Love from Pakistan. Thank you alot.

  • @aliahmed-zt7wi
    @aliahmed-zt7wi 6 лет назад

    thank you very much .

  • @priyanshramnani1751
    @priyanshramnani1751 3 года назад

    Thank you! :)

  • @islanvicthor2135
    @islanvicthor2135 5 месяцев назад

    Thank you so much

  • @benjaminrina3249
    @benjaminrina3249 5 лет назад

    dopeeeeeeeeeeee thank u so much bro

  • @lamamasters
    @lamamasters 7 лет назад +1

    Thanks!!! :)

  • @ai__76
    @ai__76 6 лет назад

    very nice tutorial

  • @kohtalainenalias
    @kohtalainenalias 7 лет назад +39

    Willing to donate

  • @ajazmiah
    @ajazmiah 7 лет назад +1

    Do you think you can make a course on Jquery Ajax with PHP, Validating form stuff like that?

  • @s8a7g
    @s8a7g 7 лет назад +2

    Is there a course where you explain the ajax functions in more detail?

  • @devanshishah9481
    @devanshishah9481 4 года назад

    this is so interesting

  • @zvucnjak
    @zvucnjak 6 лет назад

    Can we use $.ajax() like this to connect to another API instead of jsonplaceholder and get around the "CORS header 'Access-Control-Allow-Origin' missing" or does that require a different approach? Are there videos on that?

  • @noushedakib1658
    @noushedakib1658 3 года назад

    great

  • @Aserve1st
    @Aserve1st 4 года назад

    Questions: @13:34 I noticed the website where you AJAX from is in JSON objects, but after you retrieved and console.log that it becomes JS objects, does AJAX automatically do that? I thought you have to JSON.parse(data) before you can access it with JS.
    Another question: @ 14:51 When you add post.title and post.body, you didnt concatenate a line break , how does it know to add the tag to the next line?
    Thank you so much in advance. I'm new to jQuery, much appreciated if you could help me out.

  • @ajazmiah
    @ajazmiah 7 лет назад

    does responseTxt and xhr has to be placed in that order to work, or they can be placed any where as the parameter?

  • @clementayme4488
    @clementayme4488 6 лет назад

    Hi Brad. Very good stuff anyway. @5:49 you added the callback function for the load task. I wonder where do you get the documentation for the function you passed to? How do I know what are the possible params fort that one? Thanks for the hard work you made on RUclips.

    • @clementayme4488
      @clementayme4488 6 лет назад +1

      OK ;-) as simple as: api.jquery.com/load/

  • @iahonz
    @iahonz 4 года назад +3

    I don't think you can use "this" anymore inside of the $(), it always returns undefined. You have to put in the id/class passed into the first $().
    In effect, you do:
    $('#postForm').submit(e => {
    e.preventDefault();
    let title = $('#title').val();
    let body = $('#body').val();
    let url = $('#postForm').attr('action');
    $.post(url, { title, body }).done(data => {
    console.log(data);
    });
    });

    • @NuggitMan
      @NuggitMan 3 года назад

      Thanks, I wondered why it didn't work for me - this made it work

  • @MichalMonday
    @MichalMonday 7 лет назад

    what if I'd like to host such webpage using some hosting service? Is it safe to assume that the AJAX functionality will just work?

  • @turbanpupil4698
    @turbanpupil4698 5 лет назад

    Hello Sir this is Muhammad Yousaf actually i am not well in the Jquery so if you dont mind upload more JQuery Tutorials which help us ...... thanks for these Tutorials

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 лет назад

    Hi Brad u r awesome. Can you make RUclips search engine app

  • @MarioPineda94
    @MarioPineda94 7 лет назад

    I'm using AJAX with the GET method from an API to get info, is it possible to save a specific "post.title" (using the example shown in the video) value to a DB using php? For instance, get the information and afterwards select the first post and save the title of the first post in my DB? If so, how can i do this?

    • @Zero-ui4ep
      @Zero-ui4ep 7 лет назад

      You need to make a request on the API. Just like the post example of the video. On the API side or your own side you should have the db related and do whatever you want to do with the payload of your request.

  • @ae7057
    @ae7057 5 лет назад

    12:13 i think 'method' should be 'type', eh ? Great vid. btw

  • @MrMaraxli
    @MrMaraxli 4 года назад

    are these jquery videos still good 2020 or not? because the explanation so easy ... thanks

  • @Pwned_Gaming
    @Pwned_Gaming 7 лет назад

    very helpful vidoes .....do they cover the whole jQuery library?

    • @donovanvanderlinde3478
      @donovanvanderlinde3478 6 лет назад

      No but you know enough now to digest almost anything in the Docs bro imo

  • @Leonardo-gc5rh
    @Leonardo-gc5rh Год назад

    1. Install Nodejs 00:00
    2. Setting up on the computer npm (Window) 01:20
    3. Working on the command prompt for live-server 02:35
    4. What does AJAX mean ? 03:35
    5. Creating the first AJAX script with load(test.html) method 04:08
    6. IMPORTANT PROCEDURE: Load() method with a Callback function, in order to check if it is working well AJAX -load() 05:47
    7. Get Method another alternative for loading data as a HTML file 08:03
    8. IMPORTANT PROCEDURE Get Method Working with JSON data 08:49
    9. IMPORTANT PROCEDURE: Working with a URL with AJAX (it is not a local file) 11:20
    10. IMPORTANT PROCEDURE: A remote JSON data put away in HMTL format 13:27
    11. IMPORTANT PROCEDURE A POST requesting , which is working with a FORM in HTML 14:45
    12. IMPORTANT PROCEDURE : Post Requesting codinng

  • @antonioarana7181
    @antonioarana7181 6 лет назад

    man, im trying to do it with just nodejs server, without npm lite-server because xubuntu doesnt support it. Then, load('test.html') is not working right, because $('#result').load('test.html'); is puting the index.html file into the instead of the test.html, and i don know why Y.Y help please!

  • @pavle649
    @pavle649 7 лет назад

    at the end im getting eror 405: method not allowed.. any help?

  • @vaibhavbijapur6037
    @vaibhavbijapur6037 Год назад

    Is ( async -await and Promises ) an alternative to this?

  • @madrinsx8770
    @madrinsx8770 6 лет назад +1

    What if I installed nodejs on my USB and saved the files (html files) on USB too, how do I open them in cmd ?help me please

    • @jairajsahgal5062
      @jairajsahgal5062 3 года назад

      in linux, go to usb using file manager and right click and then go to terminal, that would open the terminal in that directory.
      else in windows, using file manager go to flash drive folder, and then on the path in upper side of the window, where file directories are written, click it and it will select all, then at the beginning type "cd" with the file path, that would open the terminal.
      for ios, I don't know, I'm not well financed.

  • @joeyvico
    @joeyvico 7 лет назад +1

    Hmmm I can't get the getJSON method to work. And I'm having the same problem with the ajax method. They both actually get the json files (they show on the console) but they are not rendered as li elements into the html file. No idea why...

    • @joeyvico
      @joeyvico 7 лет назад

      Could fix the getJSON changing my json file, I was using single quotes. The ajax method now is rendering undefined on title and body.... :(

    • @joeyvico
      @joeyvico 7 лет назад

      I think I know what you mean but still nothing, could you paste your snippet here please? Much appreciated

    • @Zero-ui4ep
      @Zero-ui4ep 7 лет назад +1

      I suggest you to look at the previous videos if you are still lacking the knowledge regarding basics. Because from what it seems you didn't understand the objects. You should look for either Javascript videos or google object oriented programming to get a more senseful information.

  • @JimKernix
    @JimKernix 2 года назад

    I got an error from VS Code: "Live Reload is not possible without body or head tag". I didn't do the cmd line live-server because I'm using the Live Server extension. Do you think that is the cause for the error and should I ignore it?

  • @ritaravinsky8262
    @ritaravinsky8262 4 года назад +1

  • @snex-techprogrammer5110
    @snex-techprogrammer5110 Год назад

    If you are facing the problem of installing server, this is the new command....> npm install -g liver-server

  • @letitbe3319
    @letitbe3319 Год назад

    How do you know what to write into the function parameters??

  • @ishraturmi6292
    @ishraturmi6292 5 лет назад +1

    How can you learn and remember everything 😮😮😮😮

  • @sahilvig22
    @sahilvig22 6 лет назад +3

    *How to submit data(received through form) to database(php myadmin) using jQuery?*

    • @bosnianowitzkifan41
      @bosnianowitzkifan41 5 лет назад

      You can't, you have to use a backend language to communicate with the DB.

    • @jl_woodworks
      @jl_woodworks 4 года назад

      I think you could send the data using jQuery via regular POST request. From there you could use PHP $_POST superglobal to handle your data. Make sure you sanitize it before submitting it to your DB.

  • @islamahmed7464
    @islamahmed7464 5 лет назад

    thnx alot for this amazing playlist . but , i have a Q here
    Brad used the parameter (i) several times but I didnt get the use of it , can anybody help ?

    • @KyleMerl
      @KyleMerl 5 лет назад

      it is the index for the loop api.jquery.com/each/

  • @didiksukoco9588
    @didiksukoco9588 2 года назад

    Why I can't access your Elearning Video in my mobile phone. It shows icon only

  • @joannamollman8165
    @joannamollman8165 3 года назад

    I can't get the live-server working. Any ideas? I'm on a mac and I tried 3 different ways to install. npm install live-server, npm install -g live-server, and sudo npm install -g live-server. I'm getting an error: zsh: command not found: live-server.

  • @muhammadhabibjawady552
    @muhammadhabibjawady552 6 лет назад

    Npm: node package manager

  • @SonOfAWolf736
    @SonOfAWolf736 4 года назад

    Simple registration form without page reload on clicking submit button plz

  • @dawidgrudziecki1156
    @dawidgrudziecki1156 6 лет назад +1

    great, but beginners have no idea what are parameters like data, i, user.... be more specific please

  • @jyotirmaysharma1742
    @jyotirmaysharma1742 5 лет назад +1

    How to set up nodejs server on XAMPP?

    • @jawadazaki
      @jawadazaki 7 месяцев назад

      you want to set up a server on a server?

  • @auawgamer3470
    @auawgamer3470 4 года назад

    Is this crash course still relevant since it's 3 years old

  • @JohnSmith-ox3gy
    @JohnSmith-ox3gy 2 года назад

    Write less, do more indeed.

  • @Linrox
    @Linrox 5 лет назад

    i don't consider windows a valid server medium, due to its many security flaws.

  • @shahzaibumaar7819
    @shahzaibumaar7819 3 года назад

    JQuery still relevant today in 2020?

    • @kirankamath5891
      @kirankamath5891 3 года назад

      yes, preferably old applications still use it

  • @hfe1833
    @hfe1833 6 лет назад

    your tutorial is 4.5star. if audio is excellent it would be 5star

  • @puppergump4117
    @puppergump4117 2 года назад

    I can barely follow along, it looks like there are no rules to how objects are passed around

  • @BMADHU-cd9zu
    @BMADHU-cd9zu 6 лет назад

    Create jquery scroll animation video

  • @Yohoyboy
    @Yohoyboy 4 года назад

    is this still relevant?

  • @markoshivapavlovic4976
    @markoshivapavlovic4976 3 года назад

    Dude that noise in background. Hopefully by this year you have either better mic or noise gate enabled. So freaking annoying noise.

  • @puppergump4117
    @puppergump4117 2 года назад

    Took me awhile to realize that you completely skipped over including jquery, nothing important i guess