Changes between Version 1 and Version 2 of ZooWebSite/Demo/FormToolsJs


Ignore:
Timestamp:
Dec 1, 2010, 1:13:57 PM (14 years ago)
Author:
djay
Comment:

Add the runExportDocument JavaScript? functionin the header fo the demo page

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/Demo/FormToolsJs

    v1 v2  
    55<script type="text/javascript" src="/js/swfupload.speed.js"></script>
    66<script type="text/javascript" src="/js/handlers.js"></script>
     7<script type="text/javascript">
     8<![CDATA[
     9function 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>
    728}}}

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png