You can query altitude data from usgs at:

http://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.php

It's a SOAP based service.

The tutorial points to this example which provides an elevation chart (using google charts) along a path.