explore86

by javascript I can save image from tomcat server but why can't from arcgis server

Discussion created by explore86 on Jul 22, 2011
Latest reply on Aug 12, 2011 by hzhu
Hi...
by javascript in IE I can run it and can save image from tomcatserver, the code has given at bellow. But why i can't save image from ArcGIS server using this code??? I have tried many times but I'm failure :confused:

code ::

<script>
function SaveFile(fname){
img.document.execCommand('saveas', null ,fname)
} </script>

<html> <body>
<iframe id="img" src="aziz_pic.jpg" width="600" height="450" scrolling="no" frameborder="0px"> </iframe>
<input name="" value= "Save" type="button" onclick="SaveFile('aziz_pic.jpg')" />
</body>
</html>

please help me to solve this. I want to save map image from arcgis server.

Outcomes