mdeutch3 / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

[trunk] geoXML3.fetchXML function does not work on Firefox 14.X + #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since I am using jQuery anyway I changed the implementation of this function to 
the following to make it work in any browser:

geoXML3.fetchXML = function (url, callback) {
  function timeoutHandler() {
    callback();
  };

    $.ajax({
        type: "GET",
        url: url,
        success: function(xml) {
            callback(xml);
        }
    });
};

Original issue reported on code.google.com by arui...@gmail.com on 30 Jul 2012 at 2:25

GoogleCodeExporter commented 9 years ago
What version of geoxml3 are you using?  Which branch?

Original comment by geocodezip on 30 Jul 2012 at 3:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The polys branch works for me in FF 14.0.1:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_KML_samples_test.html

Original comment by geocodezip on 30 Jul 2012 at 4:09

GoogleCodeExporter commented 9 years ago
Thanks,

I forgot to say that I am loading a considerable ammount of points.

I can show you where. Just visit this page and click on 
search(https://apps5a.ris.environment.gov.au/shipwreck/public/maps/shipwreck-map
-search-load.do). You will see it gets stuck, but it works fine in Chrome and 
IE. Since I did my change works everywhere. It does not give any error in the 
client because what is happening is that the getcher is clossing the connection 
before finsished to download the complete response.

I want to update also that I think the preoblms started with changes being done 
to the XMLHttpRequest object since Firefox 12+: 
https://developer.mozilla.org/en/Firefox_12_for_developers

Anyway I think it is a deprecated way of handling Ajax request. You would be 
better of copyying the Ajax handling code from jQuery inside you js, so you 
don't have dependencies.

Cheers,
Angel.

Original comment by arui...@gmail.com on 30 Jul 2012 at 4:25

GoogleCodeExporter commented 9 years ago
Your page doesn't work for me in Chrome:
Uncaught ReferenceError: google is not defined shipwreck-map-search.js:113

Original comment by geocodezip on 30 Jul 2012 at 10:20

GoogleCodeExporter commented 9 years ago
Looks like you are using the trunk, that is fairly old, please try the polys 
branch:
http://code.google.com/p/geoxml3/source/browse/branches/polys/geoxml3.js

Original comment by geocodezip on 30 Jul 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Yes I am using the trunk. I will try with the branch you mention. Thanks!!

Original comment by arui...@gmail.com on 30 Jul 2012 at 11:54

GoogleCodeExporter commented 9 years ago
Closing due to lack of feedback.

Original comment by geocodezip on 15 Aug 2012 at 9:39