@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
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!
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?
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 })
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.
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.
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
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 :)
This was the exact answer I have been searching for days!!! Thank you so much! And like always, your videos are top-notch!
Very simple and elegantly put out :)
great vid ! helped me out a ton
hey,i hope you can make a video tutorial of 'ajax upload file/image and data in one form ',thanks
@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
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!
We actually have a new series planned on jQuery, learning from start to finish... so hopefully that'll clear some things up for you.
Awesome dude!
thank you very much for all those videos
You're welcome :)
Learned a lot from this video. Thanks.
Great to hear!
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?
+Chris Kavanagh From the JSON Object.
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
})
You're right. I'll include this in future videos just for clarity. Thanks.
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.
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.
Easy AJAX With jQuery
You can use on blur on the input and check the username without clicking on any other links...
We're covering actually checking username/fields available in another lesson, it'll be out soon.
video is about ajax not events :/
***** just trigger ajax onoutsiderains and the server will go down :)) great british jokes
***** yes, he is not using on click, you are so right, it is not about events!
and using onblur event for that is a bad ux habit
oh! and you missed the _$(document).ready()_ wrapper.
That was intentional, but we'll include/explain that in future videos to avoid confusion.
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
+Shield Devs using what you said made my code not work. the code from the tutorial works... go figure.
+ConedStodingGames he or she said if they'd be using jQuery 1.8+; which version are you using?
Viserys Targaryen? I thought you dead man. Drogo poured a hot pot full of gold over your head.
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...
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 :)