Easy AJAX With jQuery

Поделиться
HTML-код
  • Опубликовано: 10 сен 2014
  • Want more? Explore the library at www.codecourse.com/lessons
    Official site
    www.codecourse.com
    Twitter
    / teamcodecourse

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

  • @MichaelRichins
    @MichaelRichins 9 лет назад +3

    This was the exact answer I have been searching for days!!! Thank you so much! And like always, your videos are top-notch!

  • @roshimon6670
    @roshimon6670 8 лет назад +1

    Very simple and elegantly put out :)

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

    great vid ! helped me out a ton

  • @xiaolp
    @xiaolp 9 лет назад

    hey,i hope you can make a video tutorial of 'ajax upload file/image and data in one form ',thanks

  • @H4voCz0r
    @H4voCz0r 9 лет назад

    @Hudson Nicoletti
    I think it's more to show how to manipulate data from json encoded data from the php script.
    Usually you can just output validation error which most frameworks provide.
    I may be wrong:P

  • @javiermata169
    @javiermata169 9 лет назад

    Alex thanks a lot for your tutorials, i have been following them for quite sometime and i was wondering, you did jquery tutorials long time ago (loved the series) but some of the functions have changed and there are also new ones, do you think you can do some tutorials on those? thanks in advance!

    • @codecourse
      @codecourse  9 лет назад

      We actually have a new series planned on jQuery, learning from start to finish... so hopefully that'll clear some things up for you.

    • @javiermata169
      @javiermata169 9 лет назад

      Awesome dude!

  • @kshayk0
    @kshayk0 9 лет назад

    thank you very much for all those videos

  • @felixau8432
    @felixau8432 9 лет назад +1

    Learned a lot from this video. Thanks.

  • @Colstonewall
    @Colstonewall 9 лет назад

    Alex (anyone), where does the ".available" come from in line 21 (main.js)? The if(data.available....)? Is this an ajax method? A jQuery method? You lost me on that. Where does it come from?

    • @enogael
      @enogael 8 лет назад

      +Chris Kavanagh From the JSON Object.

  • @LizardanNet
    @LizardanNet 9 лет назад +1

    When using javascript or jquery is best practice to wait till the page has fully loaded, then execute our code.
    i.e.
    $(document).ready(function () {
    //page functionality here
    })

    • @codecourse
      @codecourse  9 лет назад

      You're right. I'll include this in future videos just for clarity. Thanks.

  • @feldinho
    @feldinho 9 лет назад

    Why did you remove the // from the jquery url? If you leave it, the browser will use the current protocol (http, in this case).
    It's only important to remove it when opening the file from the FS (eg: without Apache). In that case, the browser will try loading using the file:/// protocol and will fail.

    • @codecourse
      @codecourse  9 лет назад

      I removed it just to cause less confusion. As mentioned in the video, it's best left in. I just changed it for the purpose of those scanning through the code.

  • @codecourse
    @codecourse  9 лет назад +2

    Easy AJAX With jQuery

  • @PopescuMarian
    @PopescuMarian 9 лет назад

    You can use on blur on the input and check the username without clicking on any other links...

    • @codecourse
      @codecourse  9 лет назад

      We're covering actually checking username/fields available in another lesson, it'll be out soon.

    • @boogeyman423
      @boogeyman423 9 лет назад

      video is about ajax not events :/

    • @boogeyman423
      @boogeyman423 9 лет назад

      ***** just trigger ajax onoutsiderains and the server will go down :)) great british jokes

    • @PopescuMarian
      @PopescuMarian 9 лет назад

      ***** yes, he is not using on click, you are so right, it is not about events!

    • @boogeyman423
      @boogeyman423 9 лет назад

      and using onblur event for that is a bad ux habit

  • @feldinho
    @feldinho 9 лет назад

    oh! and you missed the _$(document).ready()_ wrapper.

    • @codecourse
      @codecourse  9 лет назад

      That was intentional, but we'll include/explain that in future videos to avoid confusion.

  • @ShieldDevs
    @ShieldDevs 9 лет назад +1

    After jQuery 1.8 the success method has been changed with .done, the error method with .fail & the complete method with .always. Just saying, so people don't get confused and all furious about their code not working if they'd be using jQuery 1.8+
    -Shield Eagle

    • @nailbomb420
      @nailbomb420 8 лет назад

      +Shield Devs using what you said made my code not work. the code from the tutorial works... go figure.

    • @chauhanssaksham
      @chauhanssaksham 8 лет назад

      +ConedStodingGames he or she said if they'd be using jQuery 1.8+; which version are you using?

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

    Viserys Targaryen? I thought you dead man. Drogo poured a hot pot full of gold over your head.

  • @godonholiday
    @godonholiday 9 лет назад

    Your videos always seem to start with:
    This topic needs A,B,C, but we aren't going to cover that here, so let's speed through D...

    • @codecourse
      @codecourse  9 лет назад +1

      If you mean the fact the PHP backend isn't complete, it't because I wanted this to be a tutorial that's helpful to anyone, regardless of their choice of language. However, we do have a series out very soon covering creating a jQuery plugin to handle multiple form field checking, and the PHP side to check the database - hope you'll find that helpful :)