Try your page in Firefox with Firebug, and watch when things happen.

(look very carefully at what you passing to AddListener)

On Fri, Sep 26, 2008 at 1:01 AM, peachepe <[EMAIL PROTECTED]> wrote:
>
> I have the following code:
>
> <script type="text/javascript">
> var coordenadas_origen = "12.14137557787746,-86.2701416015625";
> var coordenadas_destino = "12.14137557787746,-86.8798828125";
>
> function set_distance()
> {
>   alert(gdir.getDistance().html);
> }
>
> gdir = new GDirections();
> gdir.load("from: " + coordenadas_origen + " to: " +
> coordenadas_destino);
> GEvent.addListener(gdir,"load", set_distance());
> </script>
>
> it just doesnt work, not even the alert pops up.
>
> http://www.solucioneslogisticasintegrales.com/logistica/test
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
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