Originally posted by Gregg Bolinger:
One last question though. Should I just use a counter in the Javascript function and append a number to the name of each Author Input Text so that I can retrieve each one in the called Servlet?
Originally posted by Gregg Bolinger:
Should I just use a counter in the Javascript function and append a number to the name of each Author Input Text so that I can retrieve each one in the called Servlet?
Originally posted by John Hembree:
With the counter approach you could add a hidden field and increment the count with each additional field and then when you get the data back to the server you read it first and then you'd know how many they added. That way if they added 5 authors and then went back and blanked out the third guy you wouldn't misread that as a field that didn't exist and stop your processing.
Originally posted by John Hembree:
Are you going to have the file upload in there as well on this page. If you do that will add a whole new way of getting to the data?
Originally posted by Gregg Bolinger:
... and all is well ...
Originally posted by John Hembree:
I was looking at the form again and noticed something on the remove which may have an adverse effect on your user. Add some text in Author1 and then click add, add text to Author2 and repeat thru Author3,4,5 or whatever. If you remove one you lose all of your typed text except for Author1, where'd it go? You should be able to retain any values in your form for the user.
Originally posted by Gregg Bolinger:
Sorry, but I know very little about Javascript. If you could provide a good link to this information, that would be good enough.
Originally posted by Jason Menard:
http://hotwired.lycos.com/webmonkey/programming/javascript/
[ August 02, 2003: Message edited by: Jason Menard ]