| 7 | <script type="text/javascript"> |
| 8 | <![CDATA[ |
| 9 | function runExportDocument(){ |
| 10 | var request = new OpenLayers.Request.XMLHttpRequest(); |
| 11 | var url="/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=OdtConverter&DataInputs=InputDoc="; |
| 12 | url+=document.getElementById("txtFileName").value; |
| 13 | url+=";OutputDoc="+document.getElementById("txtFileName").value.replace(".odt","."+document.getElementById("format").options[document.getElementById("format").selectedIndex].value); |
| 14 | url+="&RawDataOutput=OutputedDocument"; |
| 15 | request.open('GET',url,true); |
| 16 | request.onreadystatechange = function() { |
| 17 | document.getElementById("uloading").style.display="none"; |
| 18 | document.getElementById("newdoc").innerHTML=request.responseText; |
| 19 | document.getElementById("newdoc").href="/ms_tmp/"+request.responseText; |
| 20 | document.getElementById("newdoc").style.display="block"; |
| 21 | document.getElementById("uloading").style.display="none"; |
| 22 | } |
| 23 | document.getElementById("uloading").style.display="block"; |
| 24 | request.send(); |
| 25 | } |
| 26 | ]]> |
| 27 | </script> |