Okay so Its not as hard as I thought, I have some simple code getting
directions between 2 places.

http://chilternstravel.co.uk/mapsdirection.aspx

As you can see this is automatically calculating the route between 2
points, on page load

Now i want it to calculate that route when you click an <asp:button>,
so i have this:

http://chilternstravel.co.uk/mapsdirectionclick.aspx

but as you can see, the button wont load the directions onto the map
when pressed. (check the source code out, doesnt look right to me)

The code for the asp buton is as follows:

<asp:Button id="btnSubmit" runat="server" Text="GO"
OnClientClick="getDirections();" />

Why, when you click the button does it not work?, I'm not 100%
javascript savvy so I may of got something wrong in the code.

Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to