Hey Guys,
I am developing a website similar to google maps in visual studio 2008 using google maps api.
I am passing user input as source,destination and have provided three timestamps in form asp radiobutton list.
This is my javascrpit code:
function calcRouteA() {
var start = document.getElementById('DropDownList1').value;
var end = document.getElementById('DropDownList2').value;
var request = {
origin: start,
destination: end,
provideRouteAlternatives: true,
unitSystem: google.maps.UnitSystem.METRIC,
travelMode: google.maps.DirectionsTravelMode.TRANSIT,
transitOptions: {
departureTime: new Date(1362568344000)
}
};
directionsService.route(request, function (response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
}
});
}
For some reasons i am not able to parse this function with asp:radiobutton and not able to integrate it with asp:button inturn.
Please reply asap.
Thanks in advance