jQuery Tutorials: Submitting a Form with AJAX

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

I have been using this method for several years, and totally forgot where I got it. I will make the necessary notations on the script to remind myself it was you

Knards
Автор

SO helpful! 

Especially as you are one of the very few presenters on Youtube that don't sound like 10 year old kids or lisp. 

runenroll
Автор

I actually made something similair a week ago and I used serialize to make it work with different kind of forms. I made a lightbox which could include any form and send any form without being sent to another page. It's awesome!

aljodewi
Автор

I mean this in a totally straight way - I love you.

LyleCrumbstorm
Автор

I enjoy every lesson by Alex. Thanks Alex

benghabili
Автор

This is a great video, thanks for not trying to do too much and making the video really long.

jasonbikeracer
Автор

You have this really cool way of making the toothy and hairy mythical beast of Ajax appear very tame. Thank you profusely.

dominik
Автор

$.Post / $.Get are just helper functions that ultimately access the ajax method. So your basically doing the same thing, only using a helper function to do so. Also there are other methods that can be done with Ajax such as 'put' and 'delete'

JosephMorse
Автор

Very nice. Got me over a noobie issue I was having. Thanks for the clear tutorial.

lukeschollmeyer
Автор

Thank you! It make my code easy to read.

iammasoodalam
Автор

Thank you, you are my favorite instructor

omarmakled
Автор

the best explanation of this topic that i have ever seen, thanks man!!!.

camilocamargo
Автор

The Best tutorial in the world !! Thank you so much !!

DanielValenzuela
Автор

Thanks for this wonderful tutorial. worked perfectly for CodeIgniter

OlalekanElesin
Автор

Excellent Alex cheers, this was extremely useful. I couldn't get it working for ages at first, but then realised that I forgot the parentheses off the .val() aagghhh. I just got a fully populated object instead of the expected JSON data - d'oh! Anyhoo, cheers mate. Oh and yes Ray below is right about checkboxes, mad eh!

nitram_nosnibor
Автор

Hi Alex, thanks a bunch for this tutorial. It helped me get my first ajax form working! However, it did not work for me exactly as you said. I got to the point of returning the $_POST data just fine, but the jQuery was not grabbing the form and I kept getting sent to my script. After a little digging around I fixed the problem by changing $('form.ajax').on('submit', function()) to

Thanks again!

tomholland
Автор

Great tutorial, as always with your videos. Variable naming could be better though. That = this and this references the variable that. $Name = name... I understood the session, but keeping that in mind for the future would be much smoother I think.

DannyMaller
Автор

nice and clean, any chance of a follow up showing the best way to validate fields with this method?

dcsava
Автор

Alex I couldn't ever grasp this until now, Thanks a million. Fix your site so I can give you money lol

lifechristt
Автор

Thanks for the lessons, they are very helpful !

ramil