Ajax is just JavaScript. If all you want to do is run a certain sequence of requests and capture the results,
will work fine. Just set up the proxy script that comes with HTTP::Recorder, make the requests in your browser, and Recorder will turn that into a Mechanize script that behaves the same as the Ajax code.