I am extremley new to scripting, and banging my head against a wall.

My goal is to use Infopath to display information from mappoint. (distance, directions etc.) I have only been able to thus far to get
Mappoint to start, via Jscript.

The default code for Infopath forms is JScript.

In short, I need javascript that takes two addresses from the Infopath XML determines the route, directions, distance and returns the directions to the Infopathform.

Any help, or direction on where to find answers (books, websites?) would be greatly appreciated.

Many thanks