I have uploaded another test page at:
http://italianclubactivation.freehostia.com/cpg/find_us_copy(1).html
Take special note that I added 4 fields on the right of the page, and
I also added a script to add them all together using javascript in the
HEAD tag of the source.  If you have any questions, let me know.

In essence I wanted customers to be able to enter individually their
address, city, state, and zipcode.  When I was working on this, I was
thinking that if there was a way to combine all of the fields, it may
work.  I could be wrong, in which case, the code would need to be
modified to support individual fields.

Thanks,
-Kyle

On Dec 16, 8:28 am, Mike Williams <[email protected]> wrote:
> Your previous question seemed to be asking for the ability to separate
> the fields, not join them together.
>
> >I was thinking of something along the lines of:
>
> >    function setDirections(fromAddress, toAddress, locale) {
> >      gdir.load("from: " + fromAddress + " " + fromCity + " "
> >      + fromState + " "  + fromZipcode + " to: " + toAddress,
> >                { "locale": locale , "getSteps":true});
>
> That will only work if fromCity, fromState, fromZipcode are global, or
> if you add then to the parameters.
>
> >... but I can't get it to work at all.  In the example above, the
> >fromAddress, fromCity, fromState, and fromZipcode are all text fields
> >(inputs) on the website.
>
> I suspect that
>   document.getElementById("get_directions").fromCity.value
> is accessible from Javascript, but  fromCity  on its own isn't a
> Javascript variable.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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