From: Strolia-Davis C. C. M. M. <Chr...@wp...> - 2001-02-07 14:06:42
|
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 |