I just ran across this little gem today.
We can consistently reproduce this issue as well.
If you have a page that calls 'window.open' to open a new window and
that window is redirected back to itself on the server side (just a
single time)
The 'Image' object is undefined.
To get around this you can use the document.createElement('image')
or to set the Image object to an exact copy of what it should be
var iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.body.appendChild(iframe);
window.frames[window.frames.length-1].document.write
('<script>window.parent.Image = Image<\/script>");
It's a hack, but it sets the 'Image' object to the correct thing.
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
-~----------~----~----~----~------~----~------~--~---