Page 1 of 3
Some Good AJAX Tutorials?
Posted: Tue Jun 29, 2010 9:52 pm
by Qunox
Well i have done W3 AJAX tutorial and managed to set upp a Validation Form using AJAX and PHP as backend.
But i want to advance more in the matter.
So i turn to the comunity to get some good AJAX tutorials

?
Re: Some Good AJAX Tutorials?
Posted: Tue Jun 29, 2010 10:28 pm
by Jackolantern
A lot of the tutorials out there only focus on the basic data passing mechanism, because actual projects are really only limited by your imagination, provided you have a good handle on Javascript and PHP. What could you do with Javascript if it could hit the back-end? You could make a real-time combat system, a no-refresh catalog page pulling up items from the database, something like Google Suggest, etc.
Re: Some Good AJAX Tutorials?
Posted: Tue Jun 29, 2010 10:52 pm
by Noctrine
What Jack said. Ajax is just that simple data handling mechanism, what you do with it is what you do with it.
I can get some links to some decent jquery stuff when I get home, and there will probably be some actual ajax examples for my team's web engine in our post mortem, but thats later this year :p
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 1:47 am
by Jackolantern
Yep, that is what you need if you are unsure what to do next. Since you understand the AJAX way of passing data, to learn more about what to do with AJAX, you just need to learn how to do more things with Javascript.
Very few people code medium-to-large Javascript applications without a library anymore, so I would also suggest learning jQuery. It is what I use, and it makes things much easier. It turns the typical 16-line AJAX call into 1 line, selectors are much easier and about 10x more powerful, and it just rocks!
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 8:53 am
by Qunox
Well I'm not acually a big fan of JavaScript since i feel the source is to vurnerable. It feels like it's just TO easy to hack to do major things in it.
I'm not experienced in it so maybe I'm wrong. Well I'v heard of Obfusicators but good ones costs money(which i don't have, and i never got free ones to work).
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 12:46 pm
by Noctrine
Ajax = Javascript.
That's shoddy programming. Javascript is client side, as a developer you should know of rule 1.
Never trust the end user.
And this is also why you use Jquery, if you try and develop your own framework it will likely suck and be dangerous in a variety of ways. Jquery is run by a good deal of people, and honestly... it's the bees knees.
But you seem like the sort who would require more convincing.
http://jquery.com/
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 2:25 pm
by Qunox
Ajax = Javascript.
Well yeah i know that AJAX is JavaScript.
It really feels like your treating my replys like I'm VERY VERY new or just plain dumb.
I know you do this because of other users that MIGHT read the topic but please clarify that it's not directed at me
that way i dont need to feel that you are doing this against ME.
That's shoddy programming. Javascript is client side, as a developer you should know of rule 1. Never trust the end user.
AS i said i do not like JavaScript since it's to vurnerable. Nor in my reply did i say anything about trusting the back end user.
Even if you write a complex JavaScript it is still very open. What differs Normal JavaScript from JQuery in security?
PS. If i sounded rude i really didn't mean too

Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 3:04 pm
by Jackolantern
Qunox wrote:Ajax = Javascript.
Well yeah i know that AJAX is JavaScript.
It really feels like your treating my replys like I'm VERY VERY new or just plain dumb.
I know you do this because of other users that MIGHT read the topic but please clarify that it's not directed at me
that way i dont need to feel that you are doing this against ME.
That doesn't make much sense. You are wanting to know what else to do with AJAX, but then you say you don't like Javascript because it isn't secure. AJAX is what makes Javascript more secure. You can verify all input on the server before accepting it. That is why your response seemed confusing.
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 3:39 pm
by hallsofvallhalla
i have never read a ajax tutorial. I simply found one script and built on it. Ajax is very simple as long as you use what you need. It just seems like a big beast in the beginning. Don't worry I went through the same thing upon first learning it. Once you get your head around it you will see it is not too bad.
Find out exactly what you want from ajax and use it. Do not attempt to learn it all.
Re: Some Good AJAX Tutorials?
Posted: Wed Jun 30, 2010 4:52 pm
by Qunox
Jack:
I use JavaScript because i can make my games/apps more "flashy" and well more dynamic. I use JavaScript but in general i don't like to use it.
And as you said AJAX makes JavaScript more secure since i can dubble check it server-side.
Hall and to the rest:
So far i only know how to send an request(with GET and POST parameters) and recive an echoed response and display it. I wan't to know what more i can do with it.

so if you got any good sites or tutorials PLEASE let me know
I got a general idea of how it works with AJAX/JS/PHP:
JavaScript serves to deal with pages and displaying stuff.
AJAX part is used to send and retrive information.
PHP to verify and pull/put information from/to MySQL and sending it to the client(The data that needs to be secured)
Did i get that right?