i am going to learn AJAX for designing my website, i like to know weather AJAX is easy to learn or not
that's a subjective question and the answer varies entirely depending on your background. before you even look at ajax you'll need to have a good understanding of javascript.
It's not an easy task to understand AJAX, however, if you are good at JavaScript, it'll not be that hard ( only a few new elements/conceptions ).
I tend to disagree. I can do pretty much anything in jQuery although my JS skills aren't so sharp. jQuery is really easily to pickup if you're good at HTML/CSS and have a working knowledge of JS.
I agree with this person. I had a good working knowledge of JS before I got into jQuery, but I do all my JS work through jQuery now. If you're going to get into AJAX properly, I'd advise learning jQuery first, and then getting into AJAX through it. Try this site: www.visualjquery.com It has a visual representation of all the jQuery functions, as well as in-depth descriptions of all of them, examples, usage etc. Brilliant site.
AJAX isn't a language. It's just an application of Javascript with XmlHttpObject. What makes AJAX cool is how you want to use it. Just bare that in mind.
You all say you have to have experience with JavaScript, bullshit. You need to understand the basics and if you don't use a library such as jQuery or Prototype. On top of that you do need to understand a server side language such as PHP or ASP... AJAX is very simple if you know a server side language. POST or GET and away you go.
+1. Ajax is just async extension to JS machine. You have to complete two steps: 1) learn javascript 2) understand async mechanics behind few functions.
Following on from my post.... If you decide to use jQuery (which I recommend), take a look at a tutorial I just wrote on jTutorials.co.cc www.jtutorials.co.cc/tutorials/simple-ajax/
Well, IMO, jumping into jQuery or another JS library isn't a great idea before at least making yourself familiar with the concepts of JavaScript. Also saying that you don't need to know anything about JavaScript before using AJAX is stupid/misinformed. Even if you can query a server side script for data after following some quick tutorial, it's doubtful that you'll be able to do something useful and genuinely beneficial to usability with that data without having a general understanding of how everything works.
I did have a quick look at your tutorial and it was exactly what I thought it would be. Sure, you can use a couple of lines of jQuery to get a simple string back from a server. But let me ask you this.. just try and do something useful without having proper knowledge of how JS works (for example the data types and common functions). You got one result back with the tutorial? Great. Now what happens when I want to get two, or three, or 100? Now what happens when I want to sort them alphabetically and cycle through them to only show certain ones depending on the user interaction? The point I'm making is that you're going to have to know how to use JS properly if you want to use AJAX successfully. Your tutorial is great for a beginner, but from a realistic standpoint - it wont lead to anything useful without the JS knowledge. And you seem to forget that jQuery is simply a library for JS, and that you're still writing JS regardless.
Wow, aren't you the clever one.. If you read the article name, you'd understand the principle behind why I posted it here too. To show how easy it is. Sending more strings is just as easy, requires a bit of modification, but it's nothing like rocket science. PHP handles query strings like so: ?one=1&two=2&three=3 Code (markup): You just split each one of those queries like so: $one = $_POST['one']; $two = $_POST['two']; $three = $_POST['three']; Code (markup): Still not hard is it...
Not trying to be clever, trying to show you that useful AJAX requires some knowledge. And if you'd read what I had said, you would have realized I said multiple strings in the result, not in the query. That's when you'd need to use JavaScript to format these results into something usable.