Seems there are many reasons AJAX may not work. I managed to isolate my problem down to sajax_get_my_uri() in sajax.php. It wasn't returning anything. As such the uri var in the JS wasn't set, and(I'm guessing, as I don't know AJAX) the script didn't know where to send it's input. Well, anyway, I replaced
`function sajax_get_my_uri() {
global $REQUEST_URI;`
`return $REQUEST_URI;
}`
with
`function sajax_get_my_uri() {
/*global $REQUEST_URI;`
`return $REQUEST_URI;*/
return $_SERVER["REDIRECT_SCRIPT_URI"]."?".$_SERVER["REDIRECT_QUERY_STRING"];
}`
and now it works beautifully. Now, I don't know AJAX, so for all know, giving it the whole uri might be overkill, so I'll leave the actual bugfixing to Tristan.
Edit: Oh, I almost forgot, you can check if your uri variable is set by viewing the source and searching(Ctrl+F) for `uri = "`. If it just says `uri = "";` you will probably have to fix it.