From: Richard B. <ma...@ri...> - 2001-02-07 16:43:01
|
I think the easiest way is to have a form, with a field "contents", and to add textboxes to a dynlayer with setHTML (not to the form), when submitted, get the values from the textboxes and write them to the "contents" text box as a comma delimited string, to be parsed on the server. Cheers, Richard Bennett ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) ----- Original Message ----- From: "Strolia-Davis Christopher Contr MSG MAM" <Chr...@wp...> To: <dyn...@li...> Sent: Wednesday, February 07, 2001 3:07 PM Subject: RE: [Dynapi-Dev] Create a form which "grows" as user needs > Luca, > > The DynAPI could really help with something like this. Because of some > caveats with Netscape, this can be really difficult to do without using > layers. Yes you can add fields to the form, but getting them to actually > show up without a history.go(0) and then losing all of your previously > entered data is a pain. > > What may work better is to create an array to hold your clients values. > Then use a setHTML on a layer to create the form object and display it to > the user. When the user wants to add a control, add some info about it to > the array, and make sure you are saving value information to your array as > well. The recreate the form text and set the HTML to the layer again. > > There may be a better way, but this is what jumps to mind. > > Hope this helps you get started, > > Later, > > Chris > > -----Original Message----- > From: Luc...@me... [mailto:Luc...@me...] > Sent: Wednesday, February 07, 2001 3:19 AM > To: dyn...@li... > Subject: [Dynapi-Dev] Create a form which "grows" as user needs > > > > Dear DynApi-Dev > I am trying to use DynAPi in order to create a page which "grows" before > submission. > Namely, > A page is generated which contains some fields to fill in. > However there is one field which may have multiple values. > SInce is not known how many values the user would need to have, and would > be extremely > poor from a stylistic point of view either hardcode the number of fields or > use a CGI-posting method > to iterate until the final submit is given, I would like to use DynApi to > do that. > > I have checked dozens of DHTML and Javascript sites as well as dejanews but > could not figure how > to do that in practical terms. > > I have then tried with dynapi and failed. > > I would very much appreciate your support / suggestions. > > In my opinon, the DynApi does not yet implements ways to handle the above > problem. > I have tried with the List object but always got the IE5 to crash. > > I will very much appreciate your advice. > Sorry for the triviality of the question. > Luca > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |