[eluser]Pascal Kriete[/eluser]
EDIT: Colin again! :lol:
Hey,
AJAX works the same as it would with any server side language. Your javascript calls a url, and the server returns a bunch of text.
So let's say you have a controller: woot, with a function: do_ajax:
Code:
function do_ajax()
{
echo 'test';
exit;
}
Now your ajax request would look something like this, depending on the implementation:
Code:
url = 'http://example.com/woot/do_ajax';
new Ajax.Request(url, {
type: GET,
success: function(response) {
alert(response.responseText);
}
});
Does that help?