Error after adding "Include Directons"
I am having issues with the page working fine until i check the "include Directions" check box and adding the form fields to the boxes. Once i do this when i load the page it gives me an error saying the following
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Mon, 1 Feb 2010 03:49:53 UTC
Message: Object doesn't support this property or method
Line: 267
Char: 5
Code: 0
URI: directions.asp
this is the code from that section of the page:
directions = new GDirections(map, document.getElementById('wagmp_directions_1'));
GEvent.addListener(directions, "error", function() {
map.setCenter(wagmp_map_1_obj.points[0], 13);
map.addOverlay(wagmp_map_1_obj.markers[0]);
});
directions.load('from: ' + fromAddress.full + ' to: ' + address_0.full);
wagmp_map_1_obj.directions = directions;
It works fine with out adding the include directions added.