Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

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.

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 an understanding of how everything works.

Click to expand...

Not really. Did you read the tutorial link I posted? It was all jQuery there...

Not really. Did you read the tutorial link I posted? It was all jQuery there...

Click to expand...

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.

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.

Click to expand...

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.

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...

Click to expand...

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.