function getExportMapImage(lyrinfo,emap,busyimg) { ... set your ajax call using var xttp ... // here is the post var "li". It can be changed here as well as the other two place noted. var params = "il="+lyrinfo; var url="proxy.php?http://yourserver/imageblender/blendIt.aspx"; xttp.open("POST",url,false); xttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xttp.setRequestHeader("Content-length", params.length); xttp.setRequestHeader("Connection", "close"); xttp.send(params); if(xttp.status == 200) { // This is the last step of the process. ImageBlender creates the image on the gis server // and returns the image link here. I'm replacing my map with the image. You may decide to // do something different. var res = xttp.responseText; // emap is your map div. You will see where I get it from calling map.id document.getElementById(emap).innerHTML = "<img src=\""+res+"\">"; // busyimg is a small image that sits on top of the map showing a busy status esri.hide(busyimg); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.