Hi, I don't know what's the problem in your case, but I'm using forms and javascript in jetspeed extensivly and in my case it always worked the normal way. The generated HTML-document is considered to be an ordinary document by the browser, so document.formname should work and in my case it did. I suppose it's really a javascript problem. I know this isn't really helpfull, but a can assure you that there is nothing special about portlets and javascript (javascript is totally client-side and the concept of portlets is server-side stuff). Stefan
Am Dienstag, 30. Juli 2002 08:25 schrieben Sie: > 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 -- Stefan Kuhn M. A. MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 Jena, Germany Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>