Re: CForms: creating dynamic widgets

2006-03-16 Thread Robin Wyles
f.jxt",{"data":data});as in the patch referenced previously in this thread. From: Simon Stanlake [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 15, 2006 11:54 AMTo: users@cocoon.apache.orgSubject: RE: CForms: creating dynamic widgets I couldn't find the loadDOM() function - is

RE: CForms: creating dynamic widgets

2006-03-15 Thread Simon Stanlake
Wednesday, March 15, 2006 11:54 AMTo: users@cocoon.apache.orgSubject: RE: CForms: creating dynamic widgets I couldn't find the loadDOM() function - is there another .js file I need to import for this to work? From: Robin Wyles [mailto:[EMAIL PROTECTED] Sent: Friday, February 10

RE: CForms: creating dynamic widgets

2006-03-15 Thread Simon Stanlake
I couldn't find the loadDOM() function - is there another .js file I need to import for this to work? From: Robin Wyles [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 10:07 AMTo: users@cocoon.apache.orgSubject: Re: CForms: creating dynamic widgets Andrew, From flow you c

Re: CForms: creating dynamic widgets

2006-02-10 Thread Robin Wyles
Andrew,From flow you can do...cocoon.load("resource://org/apache/cocoon/forms/flow/_javascript_/Form.js");...var questions = someMethodToGetQuestions();var model =  loadDOM("forms/application/definition.jxt ", {"questions": questions});var form = new Form(model.getDocumentElement());form.showForm("

Re: CForms: creating dynamic widgets

2006-02-10 Thread Adam Walsh
Hi Andrew, This might be helpful to you - http://issues.apache.org/jira/browse/COCOON-1418 Adam Andrew Le Quesne wrote: Hi there, I am trying to generate a dynamic form template so I can create a list of questions that the user will answer from a set of questions stored in a database t

CForms: creating dynamic widgets

2006-02-10 Thread Andrew Le Quesne
Title: CForms: creating dynamic widgets Hi there, I am trying to generate a dynamic form template so I can create a list of questions that the user will answer from a set of questions stored in a database table. I am setting the definition file by using a pipeline -  cocoon:/forms