or preferably if i can get a script to give me a distance from figure eg 8km from starting point, but i have no idea how to do this.....
On Nov 20, 11:23 am, CIARAN <[email protected]> wrote: > Sorry to open this up again but can anyone help me with this, > basically what i would like to do is have the user enter their > address, the script would then generate lat and long coordinates for > this address - which i would then validate in a php script. problem is > i dont know how to get these from the javascript to be called in php > please can anyone help :( > > On Oct 12, 3:49 pm, "Pil (Trustworthy from Experience)" > > <[email protected]> wrote: > > Yes, you forgot to close the round bracket for GEvent.addListener > > (...); > > > And there are a number of things wrong: img doesn't have a closing > > tag, the following isn't possible and probably leads to an error > > > <onLoad="loadMap()"> > > > Try to give the document the right structure > > >http://www.htmlquick.com/tutorials/document-structure.html > > > On Oct 12, 5:39 pm, CIARAN <[email protected]> wrote: > > > > Hi Pil, > > > > thanks for the reply - did what you asked now im getting the error > > > missing ( expected > > > on th firefox error console, tried fiddling a bit but have had no joy > > > any ideas? > > > > On Oct 12, 4:12 pm, "Pil (Trustworthy from Experience)" > > > > <[email protected]> wrote: > > > > attachEvent() is only understood by IE. > > > > > Try to replace > > > > > if (window.attachEvent)) { > > > > window.onload = loadMap; > > > > > } > > > > > with > > > > > window.onload = loadMap; > > > > > The document is still not valid HTML. ;-( > > > > > On Oct 12, 4:00 pm, CIARAN <[email protected]> wrote: > > > > > > 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 stillhttp://www.rstsolutions.co.uk/test6.php > > > > > > cheers > > > > > > On Oct 12, 9:48 am, "Pil (Trustworthy from Experience)" > > > > > > <[email protected]> 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 [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=.
