[mapguide-users] Send parameter by POST method to mapguide server

mehdisadegh mohamad19852001 at yahoo.com
Tue Jun 10 05:00:18 EDT 2008


Hi

i want to send parameters by post method to Mapagent.fcgi instead of sending
by Get, i use this code for sending parameters but it doesn't work:

var url = webAgent;	
    var parameters =
"OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" +
encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" +
Math.random()+"&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) +
"&GEOMETRY=" + geom + "&SELECTIONVARIANT=INTERSECTS";
	if(maxfeatures != 0)
        parameters += "&MAXFEATURES=" + maxfeatures;
alert(parameters);
var selRequest = new XMLHttpRequest();
selRequest.open("POST", url, true);
      selRequest.send(parameters);
	alert(selRequest.responseXML);
    if(selRequest.responseXML)
        ProcessFeatureInfo(selRequest.responseXML.documentElement, append,
which);
    else
        RequestFailed("No response");
-- 
View this message in context: http://www.nabble.com/Send-parameter-by-POST-method-to-mapguide-server-tp17750805p17750805.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list