For some reason my pop-up didn't like a php header redirect.
The click for the popup window actually was hitting a script that
logged the hit and then redirected to the page with the Google map on
it. When I just changed my redirect to use a javascript href redirect
it fixed my problem.
I have no idea what the difference is, but that resolved the issue
with my javascript breaking and not showing the map or allowing my
photo tour to function.
Instead of redirecting using
header("Location: $url");
I used <script type="text/javascript">window.location.href='url';</
script>
I would still like to know why this makes a difference if any one has
an answer.
On Aug 21, 5:18 pm, mglind <[email protected]> wrote:
> I am getting Javascript errors that relate to the Gmap API.
>
> Page 1.
>
> http://stage.utah.com/lodging/heber.htm
>
> I get the following error.
>
> Webpage error details
>
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
> 4.0; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR
> 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; QwestIE8)
> Timestamp: Fri, 21 Aug 2009 23:15:30 UTC
>
> Message: Object doesn't support this property or method
> Line: 188
> Char: 141
> Code: 0
> URI:http://maps.gstatic.com/intl/en_us/mapfiles/140g/maps2.api/main.js
>
> Then when I click a photos & info link and popup the lodging profile
> window,
>
> I am getting this error.
>
> Webpage error details
>
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
> 4.0; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR
> 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; QwestIE8)
> Timestamp: Fri, 21 Aug 2009 23:16:53 UTC
>
> Message: 'Image' is undefined
> Line: 211
> Char: 17
> Code: 0
> URI:http://maps.gstatic.com/intl/en_us/mapfiles/140g/maps2.api/main.js
>
> Message: 'GIcon' is undefined
> Line: 80
> Char: 1
> Code: 0
> URI:http://stage.utah.com/lodging/profile23865.htm
>
> Message: 'Image' is undefined
> Line: 62
> Char: 2
> Code: 0
> URI:http://stage.utah.com/lodging/profile23865.htm
>
> However, if I refresh this page I don't get any errors or if I type
> the URL directly without opening it in a popup window it works with no
> errors.
>
> Does anyone have and ideas how to resolve this.
>
> These errors are breaking the photo tours.
>
> Please help.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---