Monday, October 12, 2009

Re: Distance from query

Hi folks,

once again thanks for all the help!!! ive now implemented the changes
from pil - the map still doesnt load.

i've replaced

if (window.attachEvent) {
window.attachEvent("onload", function() {
loadMap(); // Internet Explorer
});
} else {
window.addEventListener("load", function() {
loadMap(); // Firefox and standard browsers
}, false);
}


with


if (window.attachEvent) {
window.onload = loadMap;
}


as advised before but i'm getting an invalid arguement in firefox's
error console any ideas??
url is still
http://www.rstsolutions.co.uk/test6.php

cheers

On Oct 12, 9:48 am, "Pil (Trustworthy from Experience)"
<wolf...@gmail.com> wrote:
> Sorry, this is certainly a false bracket
>
> if (point.distanceFrom(myLocation) < 8047) {
>  }  document.write("<b>We Deliver To Your Area!<\/b><br>");
> else {
>    document.write("<b>We Do Not Deliver To Your Area!<\/b><br>");
>
> }
>
> Should be
>
> if (point.distanceFrom(myLocation) < 8047) {
>    document.write("<b>We Deliver To Your Area!<\/b><br>");} else {
>
>    document.write("<b>We Do Not Deliver To Your Area!<\/b><br>");
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate