struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anet <fired_ma...@yahoo.com>
Subject validation problem
Date Sun, 11 May 2008 05:57:01 GMT
Hi everybody;
  I have some tables on my page. each of them contains some of properties. for the first time,
tables are hidden and will be displayed by this javascript code:
  function toggle(id){
 var id = id;
 var table = document.getElementById(id);
 if(table.style.display=="none"){
  table.style.display="";
 }else if (table.style.display==""){
  table.style.display="none";
 }
}
  and in my jsp page for example:
  <p><html:img page="/images/down_enabled.gif" onclick="toggle('userpass');"/></p>
  <table id="userpass" style="display:none" border="0">
       <tr>
           <td colspan="2" height="5">some property here</td>
       </tr>
</table>
  they will be shown by clicking on the image.(down_enabled.gif)
  The struts validation works on my form correctly.but I want when a property is in one of
these tables and the validator returns "false" on it, the table will be shown. I don't know
how to use result of validation? any idea?
   
  Regards.
  Anet.

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message