Hi,
I've written a pdf creator using freemarker and XML.
Now I want to add support for new lines. So when a user inserts an enter into the textarea, I want an enter in the PDF too. Before I can do that, I have to write a JavaScript wich replaces all the \n 's into <newline/>.
But now the problems start. I've got several textboxes wich have the same name. (Yes I've got a reason why I did this :) ) So I want to search every field for enters, and replace them. When I got 1 field it's easy .. just use str.replace() .. but I don't know how I can do this with more then one field.
f.e.
<input type="text" name="description">
<input type="text" name="description">
...
I've written a pdf creator using freemarker and XML.
Now I want to add support for new lines. So when a user inserts an enter into the textarea, I want an enter in the PDF too. Before I can do that, I have to write a JavaScript wich replaces all the \n 's into <newline/>.
But now the problems start. I've got several textboxes wich have the same name. (Yes I've got a reason why I did this :) ) So I want to search every field for enters, and replace them. When I got 1 field it's easy .. just use str.replace() .. but I don't know how I can do this with more then one field.
f.e.
<input type="text" name="description">
<input type="text" name="description">
...