Hi,
 
I have a html form with checkboxes and a togglecheck box that checks or
uncheck all the checkboxes in my portlet.
 
my form is created like this : 
 
<form NAME="selectedForm"  ACTION="">
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
   <tr>
    <td colspan="3" align="right">
     <INPUT TYPE="CHECKBOX" NAME="toggleCheckAll" onclick="checkAll()"/>
    </td>
   </tr>
   <tr>
    <td colspan="3" align="right">
     <INPUT TYPE="CHECKBOX" NAME="cbx1"/>
    </td>
    .....
   </tr>
</form>
 
when I use the following javascript syntax :
if(document.selectedForm.toggleCheckAll.checked)
 
I got an error saying that document.selectedForm.toggleCheckAll is null
! On the other hand if I run the same JSP outside the portlet it works
fine !
 
Does anyone know how to reference a form in a portlet ?
 
Thanks !,
 
Christophe
 
  
___________________________________
QUERTEMONT Christophe
 
E-mail :           [EMAIL PROTECTED]
 
Mobile phone : +32(0475)918.677
___________________________________
 


Reply via email to