commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlel...@apache.org
Subject cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript package.html validateMask.js
Date Tue, 03 Feb 2004 02:15:42 GMT
rleland     2004/02/02 18:15:42

  Modified:    validator/src/javascript/org/apache/commons/validator/javascript
                        package.html validateMask.js
  Log:
  Bug 26585 Validate file extensions for file uploads
  
  Revision  Changes    Path
  1.4       +26 -10    jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- package.html	2 Feb 2004 23:58:52 -0000	1.3
  +++ package.html	3 Feb 2004 02:15:42 -0000	1.4
  @@ -2,6 +2,11 @@
   <html>
   <head>
     <title>Validator JavaScript package</title>
  +  <style type="text/css">
  +<!--
  +.style1 {color: #0000A0}
  +-->
  +  </style>
   </head>
   <body>
   <p> The validator javascript package provides a series of functions to
  @@ -9,7 +14,7 @@
   <br>
   <h2>Package Specification</h2>
   <br>
  -<table cellpadding="2" cellspacing="2" border="1"
  +<table cellpadding="2" cellspacing="2" border="1" bordercolor="#000000"
    style="text-align: left; width: 100%; height: 310px;"
    title="Input fields and their validations">
   
  @@ -120,19 +125,20 @@
         </td>
         <td style="vertical-align: top;"><br>
         </td>
  -      <td style="vertical-align: top;"><br>
  +      <td style="vertical-align: top;"><img align="MIDDLE" alt="Yes" src="doc-files/sm-yes.gif"
  + style="width: 15px; height: 15px;"> <span class="style1">1</span><br>
         </td>
         <td style="vertical-align: top;"><br>
         </td>
         <td style="vertical-align: top;"><br>
         </td>
  -      <td style="vertical-align: top;"><img src="doc-files/sm-yes.gif"
  - alt="Yes" style="width: 15px; height: 15px;"></td>
  +      <td style="vertical-align: top;"><img align="MIDDLE"
  + alt="Yes" src="doc-files/sm-yes.gif" style="width: 15px; height: 15px;"></td>
         <td style="vertical-align: top;"><br>
         </td>
       </tr>
       <tr>
  -      <td style="vertical-align: top;">hidden</td>
  +      <td style="vertical-align: top;">hidden <span class="style1">2</span>
</td>
         <td style="vertical-align: top;"><img
    style="width: 15px; height: 15px;" alt="Yes" src="doc-files/sm-yes.gif"></td>
         <td style="vertical-align: top;">&nbsp;</td>
  @@ -339,11 +345,21 @@
       </tr>
     </tbody>
   </table>
  -<br>
  -<ul>
  -  <li><a href="">##### REFER TO ANY FRAMEMAKER SPECIFICATION HERE #####</a>
  -  </li>
  -</ul>
  +<p>Notes</p>
  +<table width="1215" border="0">
  +  <tr>
  +    <th width="17" scope="row">1)</th>
  +    <td width="8">&nbsp;</td>
  +    <td width="1176"><p>Since few browser support the 'accept' attribute for
file upload input fields, a mask can be used to validate the uploaded file extension.</p>
  +      <p></p></td>
  +  </tr>
  +  <tr>
  +    <th scope="row">2)</th>
  +    <td>&nbsp;</td>
  +    <td> Hidden fields can be used with complicated HTML interface. like cascading
inter-dependent menus. The menus themselves don't represent real data fields, but are used
with javascript to set the value of a hidden field. </td>
  +  </tr>
  +</table>
  +<p>&nbsp;</p>
   <h2>Related Documentation</h2>
   For overviews, tutorials, examples, guides, and tool documentation,
   please see:
  
  
  
  1.7       +3 -2      jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js
  
  Index: validateMask.js
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateMask.js	2 Feb 2004 23:58:52 -0000	1.6
  +++ validateMask.js	3 Feb 2004 02:15:42 -0000	1.7
  @@ -17,7 +17,8 @@
   
               if ((field.type == 'hidden' ||
                   field.type == 'text' ||
  -                 field.type == 'textarea') &&
  +                 field.type == 'textarea' ||
  +				 field.type == 'file') &&
                    (field.value.length > 0) &&
                    field.disabled == false) {
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message