Hi

now my code getting work according to my requirement.there is little
bit changes need to be done

1. Need to add a back hyper link inside infowindow when get direction
link button clicked.

by using the below code i added back link button but its not
triggering the event provided in href attribute of anchor tag.

<a href="javascript:GEvent.trigger(gmarkers[' +i+ '], \"click\")"> <<
Back</a>

kindly tell me what is the problem.

For Reference check link http://maps.google.co.uk/maps

// The info window version with the "to here" form open
        to_htmls[i] = html + '<br>Get Directions: <b>To here<\/b> - <a
href="javascript:fromhere(' + i + ')">From here<\/a>' +
           '<form action="javascript:getDirections()">' +
           'Start address:<br><input type="text" SIZE=40 MAXLENGTH=40
name="saddr" id="saddr" value="" /><br>' +
           '<INPUT value="Go" TYPE="SUBMIT"><br>' +
           '<input type="hidden" id="daddr" value="'+name+"@"+
point.lat() + ',' + point.lng() +
           '"/><a href="javascript:GEvent.trigger(gmarkers[' +i+ '],
\"click\")"> << Back</a>';
           //'"/><a href="javascript:GEvent.trigger(marker,"click")">
<< Back</a>';

// The info window version with the "from here" form open
        from_htmls[i] = html + '<br>Get Directions: <a
href="javascript:tohere(' + i + ')">To here<\/a> - <b>From here<\/b>'
+
           '<form action="javascript:getDirections()">' +
           'End address:<br><input type="text" SIZE=40 MAXLENGTH=40
name="daddr" id="daddr" value="" /><br>' +
           '<INPUT value="Go" TYPE="SUBMIT"><br>' +
           '<input type="hidden" id="saddr" value="'+name+"@"+
point.lat() + ',' + point.lng() +
           '"/><a href="javascript:GEvent.trigger(gmarkers[' +i+ '],
\"click\")"> << Back</a>';
           //'"/><a href="javascript:GEvent.trigger(marker,"click")">
<< Back</a>';

Its very urgent.


Thanks in advance...

Regards
Akthari
[email protected]



On Aug 13, 5:21 pm, Rossko <[email protected]> wrote:
> You're not reading the answers you've been given, so there is not much
> point responding further.
--~--~---------~--~----~------------~-------~--~----~
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