in reply to perl javascript XML

This is called AJAX (asynchronous JavaScript and XML). I am about to release a version of DBIx::Ajax which will provide Perl support for the kind of thing you are talking about. See RFC : AJAX + DBI = DBIx::LiveGrid for a first desctription. I am expanding that to provide support for all Ajax calls, not just livegrids.