now i want to submit these tags to a server side program ie a servlet/JSP. i feel i can write that XML to a form field (say, a textarea, or a hidden field) and then submit that. but i am not sure how to proceed. how can i write the above XML onto a textarea or hidden field. it will quite helpful to me if u can help with some sample code, thanks in advance,
You can add information to text area, hidden element, or text field by setting the value.
document.FormName.ElementName.value = "blah";
You may also want to look into escaping the string. escape()
Not sure that is what you are asking, but that is what I can come up with after writing all night and about to go to bed.
posted 16 years ago
The way you described it, I hope following can help: You could write another function that would ask the user for a confirmation of the choices made with a "proceed" button that when clicked would send the choices to the server in a separate file... instead of opening a new window for the confirmation for example...
We find this kind of rampant individuality very disturbing. But not this tiny ad: