cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
Subject RE: flowscript accessing forms object
Date Mon, 17 Jan 2005 10:18:30 GMT
Hi Murray

I'm assuming you're using CForms in which case your flowscript would look
something like
this:

var form = new Form("forms/formModel.xml");
form.showForm("form-display-pipeline");

if(form.isValid) {
	var model = form.getModel();
	var field1 = model.field1;
	var field2 = model.field2;
}

The model field values will be typed according to the form model defintion.

If using regular HTML forms the syntax would be:

var field1 = cocoon.request.getParameter("field1");

HTH
Adam

-----Original Message-----
From: Murray Cassie [mailto:cassie_cu@yahoo.com]
Sent: Monday, 17 January 2005 11:02 p.m.
To: users@cocoon.apache.org
Subject: flowscript accessing forms object


Hi,

could anyone tell me (best with example) how I access
the POST DATA from inside a flow script. I need to
access
fields in the form object.

Thanks and best regards
Cassie



__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com



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




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


Mime
View raw message