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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to