[mapguide-users] FF 3 ...AJAX viewer does not load map

Le Ingenieur Inconnu gg at odyssey.com.uy
Thu Jun 19 10:16:02 EDT 2008


Hi!
The problem seems to be in the ajaxmappane.templ. RequestMap() uses a POST
in the XMLHttpRequest but it seems that the MapAgent does not like some of
the headers and the reply is empty. A quick fix for this has been to change
it to a GET, appending the parameter list.

function RequestMap(scale, centerX, centerY, showGroups, hideGroups,
showLayers, hideLayers)
{
   // ...
    mr = CreateRequestHandler();
    req = new MapRequest(mr, ++mapId);
    // -- FF3 Fix
    mr.open("GET", webAgent + "?" + reqParams, true);
    // -- Old code 
    //mr.open("POST", webAgent, true);
    mr.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
    // ...
}

Regards,
gg.


macieksk wrote:
> 
> Hi
> 
> all about this  is under this url:
> http://trac.osgeo.org/mapguide/ticket/378
> i add screen from Firebug (on FF 3 full)
> 
> So dear Mapguide team how can we fix this?
> 
> this bug should be fixed immediately....
> 
> ...new customers...and counting.
> http://downloadcounter.sj.mozilla.com/
> 
> 
> maciek
> 
> 
> 
> 
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/FF-3-...AJAX-viewer-does-not-load-map-tp17972103p18009959.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list