Это видео недоступно.
Сожалеем об этом.

4: How to use get and post methods in jQuery AJAX - Learn AJAX programming

Поделиться
HTML-код
  • Опубликовано: 25 апр 2017
  • When to use AJAX get and post using jQuery - Learn AJAX programming. In this lesson we will learn about get and post functions within jQuery AJAX.
    --
    mmtuts is a RUclips channel that focuses on teaching beginner and advanced courses in various multimedia related skills.
    We plan to make tutorials available on programming, video production, animation, graphic design, and on software such as the Adobe Creative Cloud programs.
    AJAX for beginners is a how to series that teaches AJAX to people who are just starting out learning programming. The course teaches how AJAX scripting can be made easy and teaches how to create instant loading on your website withour needing to refresh the browser each time, and much more. Creating dynamic websites with AJAX is easy and should not be seen as otherwise, which is why we want to explain the language in a easy to understand way for beginners.
    If you have suggestions on new courses, or specific lessons within existing courses you would like to see, then feel welcome to submit them in the comment section or in a private message. ALL suggestions will be seen, but not all will be replied to since we get quite a few every day.

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

  • @vimalupadhyay1883
    @vimalupadhyay1883 5 лет назад +16

    Finally i could solve my project issue with this video, thanks brow, u did good job

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

      @pak tube this means: access the $_POST[ ] and see if there is set any request named 'suggestion' then do the following ...

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

      You got a job with not knowing that!

  • @tylancoleman2862
    @tylancoleman2862 5 лет назад +2

    Is it bad my friend hired me coding after 60 days of learning. I'm litterally learning while doing! These videos are my life line haha.

  • @anweshachakraborty8029
    @anweshachakraborty8029 5 лет назад +2

    amazing video, after seeing this video all programming running absolutely perfect, completely helpful tutorial, want more videos on ajax

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

    Thank you very much friend, I did not understand much about the subject but you do it in a very detailed way.
    greetings from Chile .

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

    This is an excelent video. You are an excellent teacher! I enjoyed your explanation a lot. Thank you very much.

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

    very articulate, very useful . I guess I will use this method in the search ,thnx alot .

  • @fares.abuali
    @fares.abuali 3 года назад

    Thanks! Finally I understood AJAX

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

    thank you sir thank you very much it help a lot now i can resume my project again

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

    in the first video of this series...you said we can make a chat box with AJAX......can you make a video about it...i love and really need to learn how to make a chat box...

  • @ali2hassan2
    @ali2hassan2 5 лет назад +4

    thanks a lot, you've been really helpful

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

    best teaching style ever.....

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

    keep it up youre the best man ! thank you for your videos ! greeting from Quebec !

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

    usefull tutorial

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

    Thanks a bunch bro!

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

    Thanks. This is a very simple demo and helpful.

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

    Bro you saved me 🙂

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

    thank you, been looking for ajax that won't give CORS errors

  • @khokhokhoskinstore2435
    @khokhokhoskinstore2435 4 месяца назад

    Your video is helpful for me, but when i try to use ajax method, it doe not work at all, other jquery method still work well except ajax. Can you give me some advise ?

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

    I learned all the key essential points but forgot in one to one interview, still can do excellent in written, looking for jobs any tips that could help

  • @whatskookin6429
    @whatskookin6429 3 года назад +2

    Dani, thank you so much! this video is actually helping me a lot to go through some challenges in my internship 👍

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

    Solid...💪🏾

  • @SerenityWaves2.0
    @SerenityWaves2.0 7 лет назад +11

    Hey man can you make a tutorial about How to insert data into database using ajax

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

    Amazing simplified

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

    thank too much Dani, helps me a lot

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

    Reading important 17:00 onwards

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

    Thanks man, that was a really nice video!!

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

    Dani Thanks !

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

    thank you so much

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

    say I want to specify witch input where this is gonna happen,how can I do so,(my site have many inputs).

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

    Awesome. Thanks brother.

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

    awesoem tutorial thanks bro!

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

    Very easy to understand! Thank you so much! :D

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

    LEGEND !

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

    Incredible. Love your videos!

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

    this video was awesome thank you !

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

    hi,what if I want to determine what the button submits ,say I have 3 buttons with IDs fruit1,forwad and show ,when you click on fruit1 the infomation in show (an image and image name) must be put in the button with id "forwad" on the same page.
    I Tried this but can't get anything
    function myonclickfn(){
    document.getElementById('fruit1').onclick=function(){
    $.ajax({
    type: "POST",
    url: $("#forwad"),
    data: $("#show"),
    });
    };
    } ;

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

    really amazing vids and explaination dude.. helps a lot... thanks

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

    In the near future, I would love to donate something to you. You are amazing at explaining and sharing your knowledge for free with us should be apprictaed. Even as a student I would love to do something in return for you.

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

    The plus2 method is simple.
    Yet, it looks like it refreshes from the record-1 till the total to be loaded. So it prints 2 records, then start over and print 4, then start over and print 6 ... but the loading effort is getting heavier.
    Is there a way to only read and append, for example, record-3and4, then record-5and6, etc?

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

    That is really awesome ! Thanks

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

    Thanks for the video. One Question. I used node.js to create a live server in chrome. However when i run the code and post to the php file I receive an error POST 127.0.0.1:8080/suggestions.php 405 (Method Not Allowed). Any ideas? Thx

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

      I got this too, any ideas on how to fix this?

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

    how do you handle cors error?

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

    awesome tutorial my man!

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

    Good video! Keep it up!

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

    !== FALSE is the same as == TRUE, right? or is there something I'm missing?

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

      If it isn't FALSE it could be NULL or TRUE. So it doesn't mean != FALSE is 100% ==TRUE. :)

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

    Since we have to run on a server of our choosing to not get CORS errors, @MMttuts ?
    Does that mean that ajax shouldn't be run client side?
    how do we make it run client side without CORS errors?
    what are the best practices on this?
    whats the best way to run ajax client side?

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

    Can you do a tutorial on how to get images from folders using AJAX?

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

    it would be really nice for you to provide download of your completed files for us to use in testing...

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

    I get no output and no errors and I can't find a syntax error. Do you have finished code to diff?

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

    at 6:10 why does it alert the message before changing the html, in the function alert happens last

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

    Please how do I post the input password to get encrypted in my JavaScript encryption then post to the database

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

    Can you please explain how to enable CORS in ajax calls?

  • @Rafael-es5dp
    @Rafael-es5dp 3 года назад

    How can I search the data without being case senstive? Because I tried having a data that starts with capital letter example Saint, when i type saint it wont appear. Help please

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

    When i try the exact example from the video the request gets blocket by the cors policy. Can someone tell my how i can work around that so i can actually try to get this tutorial to work?
    edit: I'm also explicitly refering to the part with the get request. I have not yet done anything with te post method.

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

    How do we do the work on the loaded page? For example, if it is a registration form.

  • @cedric_ds
    @cedric_ds 6 месяцев назад

    I don't understand, why you are using .post() instead of .get() to get the name suggestions, you are not modifying anything on the server, right?

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

    Amazing!!!

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

    thank you man you amazing!

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

    if var name would have been array
    then passing suggestion is valid ?
    and if valid ...
    in php file
    how to retrieve it ?
    according to index value

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

    Hey is it possible that you will use get and post in a two website

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

    I was a bit confused thinking this was supposed to be one "username already exists" thing, its just for suggestion, ok got it

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

    what if I have many inputs? which attribute should I put inside the selector?

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

    Thank you Daniel

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

    easy explaining.

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

    What if you have more than one input? How do you make sure data from one input isn't being sent to the php post function of the other?

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

    thanks for the tut but there is one thing that i don't understand,the way your script auto-fills the name you are entering, is that happening automatically due to how Jquery classes for AJAX are written? or did u somehow specify this in your Javascript?

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

    thank you sir . this is realy cool

  • @12vLife
    @12vLife 4 года назад

    is this possible between two pages/forms on different domains/servers?

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

    What's append with Django? where the $.post(,...is seeking in urls.py.Your video shows an external file (suggestions.php)

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

    Can you do the same video with database

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

    wow what an explaination.!let me subscribe you first.

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

    What microphone and preamp are you using? The audio quality is excellent

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

      Haha kind of you to say 😅 I'm using the AT2020 USB mic, which is excellent and I still use today. 🙂 But let's be honest here... I have a LOT of echo going on in this video, because I had no sound dampening on my wall. 😂

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

    I understand what's happening, just wish I could remember all those damn statements. Thanks for sharing lol

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

      No one remembers them straight away. They start sticking with repetition 😉

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

    How do you create a php array automatically with data that's already in the database instead of typing them all out in the array manually? -_-

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

    Hey Daniel, i was wondering what would be a good way to program a small live chat system for my website ? Hope you can give me some tips!

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

      *Wesley Ess HTML, CSS, jQuery, PHP, MySQL, And Obvious:*
      *_AJAX_*

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

    i don't know why post work like get? i use post and it shows the information in url Why???

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

    facing a error $.get is not a function all code is ok , can any body help ?

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

    the ajax is not working for me but the normal post method does work

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

    How to send headers in post or get ? And how to post file types

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

    Hey Dan, will you still recommend jQuery in 2021

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

    good

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

    awesome video. Thanks a lot for the tutorial. I'd like to know how if the input is "select option". I tried the same way but it seemed not working, I also tried using 'id' but still failed. Hope your answer, please.

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

      What you want to have inside your select with options? I do not get your idea, please explain.

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

    I want laravel tutorials,,,,,,,,,,,,,,,,

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

    good ajex playlist please add some more videos on ajex in this play list

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

    In the thumb,
    you don't look like you're ['GET']ing methods, you look more like you're ['AVOID']ing method

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

    Come on ..
    the most useful example of AJAX is dependent drop down lists, I mean when you have multiple dropdownlists and each one is linked to the previous one. for example if the first one loads countries from database, the second one will load the cities that match the inserted country without refreshing (onchange) and the third will load districts and so on..
    I didn't find an easy tutorial to exploain how we could do it since I don't prefer jQuery by the way

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

    At 15:42 why did you use !== false instead of == true??
    isn't that the same thing?
    I tried to use == true, But the code didn't seem to run correctly, why?

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

      Try using 3 ='s, === instead of 2.

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

    hi bro..im beginner. why am i 'Failed to load file:///C:/Users/Admins/Desktop/text.txt: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.' ?????helpmeple

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

      he... i fixed... i'm run: localohost/text.txt in WWW of Appserv, instead of double click to file html.. ^^. Ths

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

    Can you develop a full application either CMS/Social Media/E-commerce/ Job Portrail with full using PHP/Mysql/HTMl/CSS without using any plugging , just from Scratch

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

      Bro! it would take forever to finish a project like this that's why there are many plugins to get it done faster.

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

    Can you help in my project of chat room system

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

    Bro' my application is different, i want to have an html that connect with my database table, and witouh refreshing change the data, what i mean... i have a table with 2 columns, when i update my table, i want the website change the data too, without refreshing, how can i do that?

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

    CORS origin?

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

    awesome but lower case does not working

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

    looks like ur names in array are sexist "$exist.." :P

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

      Hehe good one ;)

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

      Yeah, and I imagine that Jane makes 33% less than Daniel, Dennis, and Danny.....

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

      @@briguy9915 Yeah, right... -,-

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

    $.post("insert.php",{user:User,password:Password}, function(data,status){
    document.getElementById("output").innerHTML = "post staritng"; //
    }
    );
    but this didnt work

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

    strpos is not the best function to use here. this way it even would say that the name Dan is given even though Daniel is given but not Dan. Better use in_array("Daniel", $arrayname)...that way you also don't need a foreach loop every time you type anything

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

    What is the next episode?

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

    Easy so i can make it without click button and boom! If anyone comment the comment will be shown that's easy but i have problem for now it's not like i will create a table for every post so how can I solve this should I make create table fun for every comment or create post id and search function for thr id

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

    ok

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

    Not working 😭
    Error 405 Method not allowed

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

      I solved the problem
      It didn't worked because I used live server on vs code
      Php page doesn't work on live server.