[TYPO3-project-formidable] xmlbuilder with ajax?

Sanosuke303 sanosuke303 at yahoo.fr
Tue Feb 3 17:20:29 CET 2009


Hi!

I had the same problem and to solve it, I have make a form with only one input textbox, a button "add" and a listbox with multiple line.

The user put data in the textbox, then he push the button add, and the data is inserted in the list box. He can insert a lot of data.

When he had finished, the user push the submit buttom and the application read all the line of the listbox.

With this form a user can, to take your example, insert a lot of link of website in db. I have also add an "delete" button that delete the selected item of listbox.

Best regards.

Anthony Laplane
Eureka Market Consulting
http://www.eureka-market.fr

--- En date de : Mar 3.2.09, Jerome Schneider <typo3dev at ameos.com> a écrit :

> De: Jerome Schneider <typo3dev at ameos.com>
> Objet: Re: [TYPO3-project-formidable] xmlbuilder with ajax?
> À: typo3-project-formidable at lists.netfielders.de
> Date: Mardi 3 Février 2009, 16h34
> Hi !
> 
> There's no standard way to achieve this for the moment.
> 
> To sum it up: being able to add elements to the application
> dynamically, 
> thru ajax events.
> 
> I'll think about it :) it sound like a nice feature to
> have.
> Best regards,
> Jerome Schneider
> 
> Dietmar Staab a écrit :
> > Hi @all,
> > 
> > the description in 
> >
> http://lists.netfielders.de/pipermail/typo3-project-formidable/2007-March/000252.html
> 
> > of the usage of xmlbuilder works fine.
> > 
> > If in a form a dynamic number of input and/or text
> fields (the number is not 
> > known at creation time of the form) is needed one
> solution would be to create 
> > in a for loop as much input fields as I think what
> would be sufficient, 
> > setting the display style to none and add a button to
> toggle the visibility.
> > 
> > For example an input for weblinks and the user may
> enter up to 10 links I 
> > would generate 10 input fields with xmlbuilder, hide 9
> and add a 
> > button "more" to display the next input
> field. The limitation is that 
> > entering 11 links is not possible until I raise the
> constant in the code or 
> > ask the user before the form is rendered how many
> links he would like to 
> > enter (to delete input fields is another point, but it
> would be ok if these 
> > field were cleared and hidden).
> > 
> > Is there a solution to add renderlets dynamic -
> something that would add a 
> > renderlet behind an exisiting renderlet with an ajax
> event?
> > 
> > [Link-1] [more]
> > 
> > [Link-1] 
> > [Link-2] [delete][more]
> > 
> > [Link-1] 
> > [Link-2] [delete] 
> > [Link-3] [delete][more]
> > 
> > regards,
> >  dietmar
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable


      


More information about the TYPO3-project-formidable mailing list