I have a Cocoon-based Web site (2.1.9) for my students and would like to
offer online quizzes using CForms. I have gotten as far as a
password-protected student area using the authentication framework and
an online quiz form using CForms, based on the sample at:

http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/form2xml.flow

I would like to save the quiz result file on the server (based on the
form2_data-result.xml file in the sample).

However, I have not figured out how I can do at least one of the
following:

Pass the username (from the session) to the Javascript (same thing as
binding_example.js in the sample) or to a pipeline to create a new
directory {$username} so students' result files will be sorted.

Pass the username to the Javascript to prepend or append to the result
file name ({$username}-form2_data-result.xml or some other easy-to-sort
concatenation).

Any clues, snippets, alternative solutions, or resources to figure it
out myself would be appreciated.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to