cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Processing checkboxes from a form via flowscript
Date Thu, 31 May 2007 10:29:44 GMT
Cocoon 2.1.8
 
I'm using flowscript to create a form, that consists of variable
number
of checkboxes:
 
   var theForm = new Form("cocoon:/myform-create.xml");
    theForm.showForm("rep/myform-display");  
    var nmodel = theForm.getModel();
    var theValues = Array();
 
Now I need to process all the checkboxes and do the following:
* test if the ID matches a certain pattern AND checkbox is checked
* extract the value of the checkbox name
* store the result in the "theValues" array
 
I'd appreciate any pointers to sample code on how to do this.

Thanks
Derek

-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
CallCentre@csir.co.za.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message