Try to use Firefox and open the Error Console then you will see

Error: unterminated string literal
Source File: http://www.rstsolutions.co.uk/test6.php#
Line: 27, Column: 53
Source Code:
   document.write(<B>We Deliver To Your Area!</B><BR>")


Replace these three lines

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>")
}


with


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>");
}





Your HTML is far from being valid. Try to use a - correct - doctype
and character encoding declaration.

Try to test your HTML here

http://validator.w3.org/


Why are you using these special soups for different browsers


window.attachEvent()

window.addEventListener()

when there is a shorter and better possibility that works in every
browser?

window.onload = loadMap;





On Oct 12, 10:07 am, CIARAN <[email protected]> wrote:
> Hi guys
>
> thanks for the replies, replaced the line of code as andrew said but
> the map wont load at all. @marcelo the first time i mistakenly put the
> code in another section of my code but now its as per instructions any
> ideas?
>
> http://www.rstsolutions.co.uk/test6.php#
>
> many thanks again,
>
> ciaran
>
> On Oct 9, 4:00 pm, Marcelo <[email protected]> wrote:
>
> > On Oct 9, 4:49 pm, CIARAN <[email protected]> wrote:
>
> > > im not getting paid for this
>
> > Never mind that. Rossko's comment still applies.
>
> > > asking for is a little help :(
> > >  please....pretty please...
>
> > What more help do you want?
> > You've already been given lots of good advice by Andrew and Ross, and
> > you've implemented none of it.
> > Do you want us to write your code for you?
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > > On Oct 9, 3:32 pm, Rossko <[email protected]> wrote:
>
> > > > >http://www.rstsolutions.co.uk/test6.php
> > > > > sent wrong link, tried to implement the code from before but now the
> > > > > map doesnt display - this may be something really simple but i cant
> > > > > figure it out,
>
> > > > Most browsers have some form of error reporting built in.  IE can be
> > > > flaky, but in this case even IE6 reports "syntax error" (click the
> > > > yellow triangle at the bottom).
> > > > "Syntax error" would usually start people looking at the brackets in
> > > > their javascript for the mismatched one.
>
> > > > I appreciate this is probably just a test fragment, but as the page
> > > > develops you are going to need to make it into proper HTML, and it
> > > > would be wise to use the recommend doctype with the API.
> > > > You'll probably want to get rid of the 'document.write's as well, and
> > > > change to setting existing divs up using document.getElement()
>
> > > > > im really new to this like only been doing this for
> > > > > 2-3days now but really need this, any help would be brill
>
> > > > It's not our problem if you've committed to something you can't do.
--~--~---------~--~----~------------~-------~--~----~
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