For those that might be interested in embedding Google directions mapping API's into their Able site, I have finally worked thru the issues I had and have the Google directions-advanced.html example code working.
And not knowing .Net or Javascript it took a bit longer for me than probably for any of you to get thru the frustration of nested forms in .Net
The code was taken from the Google site page source view when looking at the example (
http://code.google.com/apis/maps/docume ... anced.html). From the simple page source they provided, I separated the code, from the <script> statement down through the </head> <body onload="initialize()" ununload="GUnload()"> statements and pasted them into the header section of a new scriplet created. In that code, I signed up for and included the API key given from Google and I also modified the default 'from' and 'to' locations provided in the example setDirections call in the initialize() function to both be set to the destination address for the initial page load map drawing. Pretty straightforward.
The main changes come in migrating the Form portion of the page into the Content section in the Able scriplet maintenance. The easiest solution for forms in ASP.net appears to be to remove the <form> and </form> tags since every .Net page is already in a form and you can't nest forms, .Net or otherwise. Then change the onsubmit form function with an onclick event and you are about done which for me, looked like this:
<input name="submit" type="submit" value="Get Directions!" onclick="setDirections(from.value, to.value, locale.value); return false" />
Not knowing Javascript, I struggled in the parameters to be passed to the function, but once I started debugging the javascript side, I was able to figure it out.
I hope I am not preaching to the choir here on how this was done, and what I think might be an easy solution to incorporating forms-like capabilities into your .Net app particularly if you are looking at migrating HTML forms or ASP content into your .Net app. But after a frustrating few days, I got past my problem with what turns out to be a fairly simple solution.