Hi Sarah,
Easiest way would be to call DigitizePoint() passing a callback function that prompts for a distance value. The callback function will be called, and passed a point which is the point you clicked on the map.
eg
---------------------------------
var callback = function(point) {
var dist = prompt("Enter the distance");
//Do something with the captured input, for example call a script via an iframe, xmlhttprequest or form submit, passing our captured values
};
mapFrame.DigitizePoint(callback);
------------------------
mapFrame would be a reference to the map frame in the ajax viewer.
- Jackie
http://themapguyde.blogspot.com
http://au.linkedin.com/in/jackieng