innerHTML .
parseInt.
onFailure, in your code that makes the Ajax request, change the request URL to some bogus URL on webster for a page that doesn't really exist.
To test onException, try requesting a URL that is not even on webster, such as http://www.google.com/ .
$("elementID").remove();
onSuccessr handler, and then it also runs my onFailure or onException handler! Why is it running both?
onSuccess handler.
One odd thing about Prototype's Ajax.Request is that when you have a JavaScript syntax error or runtime error (such as dereferencing a null pointer) in your onSuccess code, it treats this the same as if the request itself failed.
The syntax/coding error causes an exception, which causes the Ajax.Request to execute your onException handler.
Check the syntax of your onSuccess code for errors (use JSLint, etc.) and try again.