cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Rech" <philipp.r...@gmx.de>
Subject [solved] CForms: how 2 lookup all widgets at once
Date Wed, 03 Nov 2004 15:08:18 GMT
okay, thank you guys! now i know what i can do
and it works so far. I put the JS code 
in the head of my form template "head" and call it via "onload".
Here is work with the HTML instances of the CForm fields...
Thanks again Joerg and Bart!
phil










> On 03.11.2004 13:49, Philipp Rech wrote:
> 
> > The question is >>if (widget.lookupWidget("*") != "null")<< okay?
> 
> No, as Bart wrote you have to check the widgets explicitely.
> 
> > And why do I get that error: 
> > 
> > "file:/C:/Programme/Diplom/Apache Software Foundation/Tomcat
> > 5.0/webapps/cocoon/bihs-t7/cform-definitions/widgets_table_event.xml",
> line
> > 9: uncaught JavaScript exception: at bihs
> (file:/C:/Programme/Diplom/Apache
> > Software Foundation/Tomcat
> 5.0/webapps/cocoon/bihs-t7/flowscripts/bihs.js,
> > Line 21) at (resource://org/apache/cocoon/forms/flow/javascript/Form.js,
> > Line 127): ReferenceError: "alert" is not defined.
> 
> You mix flowscript and browser javascript. alert() as you wrote it would 
> be executed on the server.
> 
> Better use validation to address both of your problems.
> 
> Joerg
> 
> ---------------------------------------------------------------------
> 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