Subversion Repositories wimsdev

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. <html>
  3.     <head>
  4.         <title>Spreadsheet - Applet</title>
  5.         <style>a:link{color:blue;text-decoration:none;}a:hover{color:red;text-decoration:none;}</style>
  6.     </head>
  7.     <body  bgcolor="#408040" text="#ffffff" link="#80ff80" vlink="#70d070" alink="#80ffff">
  8.         <h1>SpreadSheet Applet</h1>
  9.             <script language="javascript" type="text/javascript">                            
  10.                 function readthisraw(){                                                                                                  
  11.                 var input=document.getElementById("SharpTools").ReadRawApplet();                                                      
  12.                     alert("we will send to WIMS:\n\n"+input);
  13.                 }
  14.                 function readthis(){                                                                                                  
  15.                 var input=document.getElementById("SharpTools").ReadApplet();                                                      
  16.                     alert("we will send to WIMS:\n\n"+input);
  17.                 }
  18.                 function showapplet(){                                                                                              
  19.                     document.getElementById("SharpTools").ShowSpreadSheet(true);                                                      
  20.                                                                                                                                    
  21.                 }                                                                                                                  
  22.                 function hideapplet(){                                                                                              
  23.                     document.getElementById("SharpTools").ShowSpreadSheet(false);                                                      
  24.                                                                                                                                    
  25.                 }
  26.             </script>
  27.             <applet id="SharpTools" archive="dist/SharpTools.jar" code="SharpTools/MainApplet" width="120" height="30">
  28.                 <param name="language" value="nl">
  29.                 <param name="X_screen_location" value="100"><!-- default 0-->
  30.                 <param name="Y_screen_location" value="100"><!-- default 0-->
  31.                 <param name="window_width" value="700">
  32.                 <param name="window_height" value="400">
  33.                 <param name="replyurl" value="http://localhost/wims/wims.cgi?module=$module&session=$sssion&reply$n=">
  34.                 <param name="reply_type" value="1">
  35.                 <!-- 0 = matrix  ["1","2","3";"a","b","c"] note: "" string protection for pari evaluation -->
  36.                 <!-- 1 = csv 1,2,3 \n a,b,c  note : no string protection -->
  37.                 <!-- 2 = tsv 1 \t 2 \t 3 \n a \t b \t c  note : no string protection -->
  38.                 <param name="convert_initial_tsv_to_matrix" value="true"><!-- append (to the reply) a line with the given/initial tsv-flie as a matrix -->
  39.                 <param name="file" value="http://localhost/test.tsv">
  40.                 <param name="fontsize" value="16">
  41.                 <param name="empty_cell" value="null">
  42.                 <!-- fill the empty cells with a String : default null -->
  43.                 <!-- sizes in pixels -->
  44.                 <param name="COLUMNWIDTH" value="80">
  45.                 <param name="FIRSTCOLUMNWIDTH" value="40">
  46.                 <param name="HISTOGRAMWIDTH"  value="400">
  47.                 <param name="HISTOGRAMHEIGHT"  value="400">
  48.                 <!-- configuring the menu & toolbar -->
  49.                 <!-- accepted value's like caseinsensitive : TRUE , 0 , NO , NEE , NON -->
  50.                 <!-- all other value will result in FALSE -->
  51.                 <param name="COLUMNS" value="5">
  52.                 <param name="ROWS" value="5">
  53.                 <param name="TOOLBAR_NEW" value="false">
  54.                 <param name="TOOLBAR_PRINT" value="false">
  55.                 <param name="TOOLBAR_UNDO" value="true">
  56.                 <param name="TOOLBAR_REDO" value="true">
  57.                 <param name="TOOLBAR_CUT" value="true">
  58.                 <param name="TOOLBAR_COPY" value="true">
  59.                 <param name="TOOLBAR_PASTE" value="true">
  60.                 <param name="TOOLBAR_FIND" value="true">
  61.                 <param name="TOOLBAR_INSERTROW" value="true">
  62.                 <param name="TOOLBAR_INSERTCOLUMN" value="true">
  63.                 <param name="TOOLBAR_DELETEROW" value="true">
  64.                 <param name="TOOLBAR_DELETECOLUMN" value="true">
  65.                 <param name="TOOLBAR_SORTCOLUMN" value="true">
  66.                 <param name="TOOLBAR_HISTOGRAM" value="true">
  67.                 <param name="TOOLBAR_HELP" value="true">
  68.                 <param name="TOOLBAR_FUNCTIONS" value="true">
  69.             </applet>
  70.             <br>
  71.             Reading raw input:
  72.              <input type="button" name=".....RAW......" value="RAW" onclick="javascript:readthisraw();">                    
  73.            <br>
  74.             Reading calculated formula's:                                                                                                                    
  75.              <input type="button" name=".....TEST......" value="CALCULATED" onclick="javascript:readthis();">                    
  76.             <br>
  77.             Showing the applet with Javascript:                                                                                                                    
  78.             <input type="button" name=".....SHOW......" value=".....SHOW....." onclick="javascript:showapplet();">                  
  79.             <br>                                                                                                                    
  80.             Hiding the applet with Javascript:                                                                                                                    
  81.             <input type="button" name=".....HIDE......" value=".....HIDE....." onclick="javascript:hideapplet();">
  82.         </h1>
  83.     </body>
  84. </html>
  85.  
  86.