Thank you for replying Ross,

I tried If (errorCode != 600) {}and still would not execute the code
within the if statement. What I am trying to achieve is an if
statement to run when there is streetview present.

I put the script after the head hopefully it will load on ie6 could it
also be that I have no function to run the map and so don;t call a
function through body onload?

Thanks Again.

On Aug 8, 9:08 pm, Rossko <[email protected]> wrote:
> > For some strange reason the if statement (line 480) in the source code
> > of the link works, how ever if I was to change "if (errorCode ==600)"
> > to if "(errorCode == 200)"and make the lat and lang point a location
> > of streetview avalability, it refuses it run that if statement when
> > true.
> > Does anyone know why this is happening?
>
> There isn't a panorama error code 200.
> They're listed here -
>    http://code.google.com/apis/maps/documentation/reference.html#GStreet...
> it's a very short list.
>
> There are no success codes, because you get a Streetview object if its
> successful ...
>
> Then, the listener you have added is for errors -
>  GEvent.addListener(myPano, "error", handleNoFlash);
> it doesn't even get triggered in the case of success.
>
> > Link:http://nwbeta.itproz.co.uk/property-details.html?pid=NBS01_14725&typ=...
>
> That won't render at all in IE6, it may be because of the script
> before the head.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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