yenbao1340 / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Adding geometry controls crashes IE6. #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. geometryControls = new GeometryControls(); at window.load
2.
3.

What is the expected output? What do you see instead?
I expect a map, but IE6 crashes.

What version of the product are you using? On what operating system?
IE6 on XP. GeometryControls Class v0.2
I tested it on 2 machines with this configuration.

Please provide any additional information below.
On IE7, Firefox and Chrome no problems. 

Original issue reported on code.google.com by bas.r...@gmail.com on 17 Dec 2008 at 8:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
e6 crashes are normally a result of DOM manipulation before the DOM exists. I'll
have a look at it. Thanks for reporting this issue.

Original comment by bbr...@gmail.com on 17 Dec 2008 at 9:40

GoogleCodeExporter commented 8 years ago
Sory misread Class name. GeometryControls aren't ExtLargeMapControls

Original comment by bbr...@gmail.com on 17 Dec 2008 at 9:45

GoogleCodeExporter commented 8 years ago
I have extra debug info from GLog:

09:51:05:140GeometryControls#getInfoWindowHtml says: looks like you provided an
invalid URL. The URL is 
/GoogleMaps/geometrycontrols/data/geometry_html_template.html
The error is: [object Error] A time-out occurred during this operation.

Original comment by bas.r...@gmail.com on 17 Dec 2008 at 4:43

GoogleCodeExporter commented 8 years ago
Does that URL actually exist in your file system?

Original comment by pamela.fox on 28 Dec 2008 at 12:06

GoogleCodeExporter commented 8 years ago
yes its here in the examples folder
http://gmaps-utility-library-
dev.googlecode.com/svn/trunk/geometrycontrols/examples/data/

Original comment by chrism...@gmail.com on 28 Dec 2008 at 1:09

GoogleCodeExporter commented 8 years ago
The file exists, and is used by other browsers as it should. IE6 seems to 
crash, but returns with that error in 
tje GLog console after a while. 

Original comment by bas.r...@gmail.com on 28 Dec 2008 at 3:07

GoogleCodeExporter commented 8 years ago
Any more comments on this? The error keeps occuring in IE6. Is this project on 
hold?

In addition, an error is occuring in
'MarkerControl.prototype.assembleInfoWindowHtml', when 
'geometry_style_link_params'
is trying to be accessed. It is null or not an object according to IE6.

Thanks, Bas

Original comment by bas.r...@gmail.com on 29 Jan 2009 at 3:18

GoogleCodeExporter commented 8 years ago
After some more debugging I found the cause. And the solution.

Cause: GXmlHttp.create() seems not to work in IE6, at least not in this context.

Solution: custom getXMLHttpRequest function.

GeometryControls.prototype.getXMLHttpRequest = function () {
    if (window.XMLHttpRequest) {
        return new XMLHttpRequest()
    }
    else {
        if (window.ActiveXObject) {
            return new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
}

Original comment by bas.r...@gmail.com on 3 Feb 2009 at 1:06

GoogleCodeExporter commented 8 years ago
thanks for finding this, i will incorporate your fix!

Original comment by chrism...@gmail.com on 4 Feb 2009 at 12:43