jQuery Crash Course [5] - Ajax

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024
  • In this video we will work with the load, $.get, $.post and $.ajax methods in jQuery
    My 10 Project jQuery/JS Course - www.eduonix.co...
    Project Files - github.com/bra...

ความคิดเห็น • 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 ปีที่แล้ว +18

    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!!!

  • @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

  • @twanus2657
    @twanus2657 4 ปีที่แล้ว +14

    Just finished the playlist.
    Thank u, kind sir.

  • @user-vk7db1rg2q
    @user-vk7db1rg2q 5 หลายเดือนก่อน

    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!

  • @DanielByun92
    @DanielByun92 7 ปีที่แล้ว +30

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

  • @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.

    • @TraversyMedia
      @TraversyMedia  7 ปีที่แล้ว +4

      Thank you sir :)

    • @real_anil9688
      @real_anil9688 5 ปีที่แล้ว +2

      @@TraversyMedia No Thankyou sir

    • @OrnateOwl
      @OrnateOwl 5 ปีที่แล้ว +1

      @@real_anil9688 You tell 'em

  • @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.

  • @joselorenzini4196
    @joselorenzini4196 ปีที่แล้ว

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

  • @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!

  • @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.

  • @lopsidedboy
    @lopsidedboy 6 ปีที่แล้ว

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

  • @devtest8078
    @devtest8078 4 ปีที่แล้ว +1

    As always, great videos Brad. Greatly appreciated. Thanks

  • @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

  • @kubataiupov1245
    @kubataiupov1245 2 ปีที่แล้ว

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

  • @narayanareddy15
    @narayanareddy15 3 ปีที่แล้ว +1

    finished the playlist, thank you brad!❤

  • @rajabmuhamedrajab5128
    @rajabmuhamedrajab5128 ปีที่แล้ว

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

  • @justkdding
    @justkdding 4 ปีที่แล้ว

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

  • @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

  • @kohtalainenalias
    @kohtalainenalias 7 ปีที่แล้ว +39

    Willing to donate

  • @nirajbhanushali7693
    @nirajbhanushali7693 4 ปีที่แล้ว

    your hard work still used in 2020 lockdown thank you

  • @da80
    @da80 7 ปีที่แล้ว

    All your videos are absolutely awesome!!!

  • @mirelasemanjaku
    @mirelasemanjaku 4 ปีที่แล้ว

    Very easy to follow and understand! Great work!

  • @mohamedeyadbadran3450
    @mohamedeyadbadran3450 ปีที่แล้ว

    Amazing Course Thank you for your great explination

  • @arshadsarkarhanif
    @arshadsarkarhanif 3 ปีที่แล้ว

    thank you brad! I have completed full playlist

  • @it-learner5701
    @it-learner5701 3 ปีที่แล้ว

    watching 2021. Thank yu Brad

  • @kalabaayev
    @kalabaayev 2 ปีที่แล้ว

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

  • @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

  • @deepikamewada680
    @deepikamewada680 ปีที่แล้ว

    Very nice explanation. Thanks for it.

  • @KamronPhray
    @KamronPhray 6 ปีที่แล้ว +1

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

  • @arbazkhan-od9sk
    @arbazkhan-od9sk 6 ปีที่แล้ว

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

  • @danielrgh
    @danielrgh 2 ปีที่แล้ว

    Very Good Course Good luck

  • @samueltorres2485
    @samueltorres2485 6 ปีที่แล้ว

    Your vids are always dope!

  • @hassanOnYoutube
    @hassanOnYoutube 2 ปีที่แล้ว

    Love from Pakistan. Thank you alot.

  • @novailoveyou
    @novailoveyou 4 ปีที่แล้ว +1

    Thank you!

  • @s8a7g
    @s8a7g 7 ปีที่แล้ว +2

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

  • @sayedakbarali5650
    @sayedakbarali5650 8 ปีที่แล้ว +1

    Thanks for this new course

  • @nasirhussain6959
    @nasirhussain6959 3 ปีที่แล้ว

    nice of way of teaching....thanks

  • @Hashmimohammed
    @Hashmimohammed 8 ปีที่แล้ว

    this is simply awesome ... superb

  • @stingvii3805
    @stingvii3805 7 ปีที่แล้ว

    Thankyou again...Completed the series

  • @snex-techprogrammer5110
    @snex-techprogrammer5110 ปีที่แล้ว

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

  • @manoliszaimakis273
    @manoliszaimakis273 5 ปีที่แล้ว +1

    Really helpful video, thanks

  • @ahmedkorim6420
    @ahmedkorim6420 6 ปีที่แล้ว

    I am amazed at this great course thx bro

  • @NurzulHealme
    @NurzulHealme 6 ปีที่แล้ว +2

    Thank You!! Very much for all video..

  • @limitless0032
    @limitless0032 3 ปีที่แล้ว

    Amazing teaching , thanks.

  • @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.

  • @odeddugma9748
    @odeddugma9748 3 ปีที่แล้ว

    Thanks for wonderull content!

  • @clementayme4488
    @clementayme4488 7 ปีที่แล้ว

    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 TH-cam.

    • @clementayme4488
      @clementayme4488 7 ปีที่แล้ว +1

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

  • @nilufar4983
    @nilufar4983 6 ปีที่แล้ว +1

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

  • @boschierob
    @boschierob 3 ปีที่แล้ว

    Very fine. Many thanks!

  • @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

  • @premier69
    @premier69 7 ปีที่แล้ว

    Thank you very much for your hard work!

  • @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.

  • @islanvicthor2135
    @islanvicthor2135 6 หลายเดือนก่อน

    Thank you so much

  • @kiransahu157
    @kiransahu157 5 ปีที่แล้ว

    Thanks for this course

  • @BipinOli90
    @BipinOli90 7 ปีที่แล้ว +1

    Thanks for this :)

  • @priyanshramnani1751
    @priyanshramnani1751 3 ปีที่แล้ว

    Thank you! :)

  • @ajazmiah
    @ajazmiah 7 ปีที่แล้ว +1

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

  • @dawidgrudziecki1156
    @dawidgrudziecki1156 6 ปีที่แล้ว +1

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

  • @MrMaraxli
    @MrMaraxli 4 ปีที่แล้ว

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

  • @ai__76
    @ai__76 6 ปีที่แล้ว

    very nice tutorial

  • @aliahmed-zt7wi
    @aliahmed-zt7wi 6 ปีที่แล้ว

    thank you very much .

  • @noushedakib1658
    @noushedakib1658 3 ปีที่แล้ว

    great

  • @lamamasters
    @lamamasters 7 ปีที่แล้ว +1

    Thanks!!! :)

  • @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?

  • @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.

  • @benjaminrina3249
    @benjaminrina3249 5 ปีที่แล้ว

    dopeeeeeeeeeeee thank u so much bro

  • @devanshishah9481
    @devanshishah9481 4 ปีที่แล้ว

    this is so interesting

  • @Pwned_Gaming
    @Pwned_Gaming 8 ปีที่แล้ว

    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

  • @ishraturmi6292
    @ishraturmi6292 5 ปีที่แล้ว +1

    How can you learn and remember everything 😮😮😮😮

  • @didiksukoco9588
    @didiksukoco9588 2 ปีที่แล้ว

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

  • @ae7057
    @ae7057 5 ปีที่แล้ว

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

  • @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.

  • @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.

  • @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?

  • @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?

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 ปีที่แล้ว

    Hi Brad u r awesome. Can you make TH-cam search engine app

  • @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.

  • @JimKernix
    @JimKernix 3 ปีที่แล้ว

    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?

  • @muhammadhabibjawady552
    @muhammadhabibjawady552 6 ปีที่แล้ว

    Npm: node package manager

  • @letitbe3319
    @letitbe3319 ปีที่แล้ว

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

  • @ritaravinsky8262
    @ritaravinsky8262 4 ปีที่แล้ว +1

  • @JohnSmith-ox3gy
    @JohnSmith-ox3gy 2 ปีที่แล้ว

    Write less, do more indeed.

  • @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!

  • @vaibhavbijapur6037
    @vaibhavbijapur6037 ปีที่แล้ว

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

  • @puppergump4117
    @puppergump4117 2 ปีที่แล้ว

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

  • @auawgamer3470
    @auawgamer3470 4 ปีที่แล้ว

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

  • @pavle649
    @pavle649 7 ปีที่แล้ว

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

  • @jyotirmaysharma1742
    @jyotirmaysharma1742 5 ปีที่แล้ว +1

    How to set up nodejs server on XAMPP?

    • @jawadazaki
      @jawadazaki 9 หลายเดือนก่อน

      you want to set up a server on a server?

  • @SonOfAWolf736
    @SonOfAWolf736 4 ปีที่แล้ว

    Simple registration form without page reload on clicking submit button plz

  • @Linrox
    @Linrox 5 ปีที่แล้ว

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

  • @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.

  • @shahzaibumaar7819
    @shahzaibumaar7819 3 ปีที่แล้ว

    JQuery still relevant today in 2020?

    • @kirankamath5891
      @kirankamath5891 3 ปีที่แล้ว

      yes, preferably old applications still use it

  • @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/

  • @Yohoyboy
    @Yohoyboy 4 ปีที่แล้ว

    is this still relevant?

  • @hfe1833
    @hfe1833 6 ปีที่แล้ว

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

  • @BMADHU-cd9zu
    @BMADHU-cd9zu 6 ปีที่แล้ว

    Create jquery scroll animation video

  • @puppergump4117
    @puppergump4117 2 ปีที่แล้ว

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