Changeset 730 for geisa/web/initGeisa_script.jsp
- Timestamp:
- 01/18/13 16:51:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geisa/web/initGeisa_script.jsp
r723 r730 1658 1658 //this.nb = jQuery.parseJSON( result ).nb; 1659 1659 //this.NomRepFileOut = jQuery.parseJSON( result ).NomRepFileOut; 1660 //liste des fichiers png crées par le programme fortran. 1661 var fileList = jQuery.parseJSON( result ).fileList; 1662 1663 1660 1664 1661 1665 //chemin court de l'image … … 1671 1675 content = "<a href=project?methodName=downloadFile&fileName=" +this.NomRepFileOut + "GEISA.tar&fileNameToDisplay=GEISA.tar><button class='dataProtocolDownloadButton'>Download All</button></a>"; 1672 1676 } 1673 //tracer chaque graphe avec son bouton download associé 1674 for (i=1; i<this.nbGraph+1; i++) { 1675 //content = content + '<img src=' + this.pathImg + "graph" + this.nb +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' + "graph" + this.nb+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1676 content = content +'<img src=' + this.pathImg + this.nomFichier +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + this.nomFichier+"-"+i + ".png&fileNameToDisplay="+this.nomFichier+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1677 } 1677 // //tracer chaque graphe avec son bouton download associé 1678 // // for (i=1; i<this.nbGraph+1; i++) { 1679 //content = content + '<img src=' + this.pathImg + "graph" + this.nb +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' + "graph" + this.nb+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1680 // // content = content +'<img src=' + this.pathImg + this.nomFichier +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + this.nomFichier+"-"+i + ".png&fileNameToDisplay="+this.nomFichier+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1681 // // } 1682 1683 1684 $.each( fileList, jQuery.proxy(function( index, fileElement ) 1685 { 1686 content = content +'<img src=' + this.pathImg + fileElement + ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + fileElement+"&fileNameToDisplay="+fileElement+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1687 }, this) ); 1688 1689 1690 1691 1678 1692 1679 1693 this.displayWindow(content);
Note: See TracChangeset
for help on using the changeset viewer.