cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: CForms: how 2 lookup all widgets at once
Date Wed, 03 Nov 2004 13:34:28 GMT
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


Mime
View raw message