In order to run these examples, you will have to have HTML::Mason up and running already. If you don't, then I'm sorry, these docs are not for you. You will also need Syntax::Highlight::Mason which is available on CPAN. Create a directory somewhere in your component root, and unpack these files into it. You will also have to have your web server configured so that it runs mason for any files inside this subdirectory. That should be all there is to it.
I encountered some unexpected behaviours. When you try out Create a link that does an Ajax call, I expected it to update a specific span, but instead the page was reloaded with the result of the call. If you figure out how to avoid this, please let me know and I'll update the example.
I hope you find this useful as an example of integrating Ajax calls in a HTML::Mason environment.