Hi,

I'm unable to implement the method your are quoting. Can you please
tell me if I can use the Directions.load method to store the value in
a variable and send it using a hidden field over  POST data. After
that I can download it to a PHP variable maybe....

Can you please tell me how to do that?

On Jul 22, 1:31 pm, Ronnie1985 <[email protected]> wrote:
> Hi Mike,
>
> Thanks for the help. Will try it out and let you know.
>
> On Jul 22, 1:12 pm, Mike Williams <[email protected]> wrote:
>
> > I presume that you are aware that the PHP runs on your server, and
> > GDirections is Javascript that runs inside the user's browser. So you
> > have to send the text from the browser to a PHP script on your server.
> > It's easier to use a separate script that's dedicated to just sending
> > the SMS, rather than trying to arrange for the script that generates the
> > Javascript that displays the map to have two independent functions.
>
> > Send the data to the script with GDownloadUrl using the POST option (see
> > documentation) because the default GET option is limited to 512
> > characters, and directions can be a lot longer than that.
>
> > Obtain the data wither by using .getRoutes(), .getSteps() and
> > .getDescriptionHtml() to obtain the description of each step, or read
> > the .innerHTML of your panel div as one huge chunk.
>
> > --
> > Mike Williamshttp://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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