Hey group,

Ok, now I've got the distance calculator working fine for my site,
which is in javascript, but I have a PHP function which needs to call
this script dynamically and get the return value in to the PHP
variable where it can continued to be used in that function.

So, what I tried to do first is to put the script to a separate page,
then tried to use a "document.write(result);", so the PHP function can
use the fopen(), read the page contents and trim if necessary, but for
some reason, document.write() just doesn't want to spit that out to
the page.. I've also tried println() and writeln() - doing it with a
normal string is ok..

Desperate, I then updated the distance script to send the result to a
cookie to be set, I then made a php script to test read it, which was
successful, but I've since discovered that by using fopen(), then
won't actually programatically store the cookie - which makes sense
thinking about it, just opening a data stream, huh..

So I'm at a loss... I've come across the page http://satoewarna.com/jqsajax/
which seems to be my last option - unless anyone else can suggest
something, or provide PHP equivalent code to get the distance?

I've put the code to (temporarily):

http://global.logisofttech.com/getDistance.php?from=<any
address>&to=<any address>

Any help will be terrific!

Cheers,
Jesse.

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