not sure where i'm messing it up.
if i'm not getting a message box when i submit, does that mean the function is not triggering?
here's my form tag:
<form name="rfss" method="post" action="/servlet/RFSSConfirm"
onSubmit=" this.SystemID.optional = true;
i have renamed the form in the scripts..
not sure if u are familiar with this, but here's where the data from the 2 textareas are used in my servlet:
msgText1= msgText1 + "<input type = hidden name = Description value = " + req.getParameter("Description") + ">";
msgText1= msgText1 + "<input type = hidden name = Benefits value = " + req.getParameter("Benefits") + ">";
here's the text i have been using to test in each textarea:
testing "the" form 'for' quotes'
and finally, here's the code u supplied that i used (i changed a few things to work in my form):
var data1 = parseData(document.rfss.Description.value);//text area 1
var data2 = parseData(document.rfss.Benefits.value);//text area 2
//alert("data after replacements \n\tData1\n"+data1+"\n\tData1\n"+data2);
data = data.replace(/\"/g,"\\\"");
data = data.replace(/'/g,"\\'");
does this script rename the form data? (ie instead of Descriptions and Benefits, r they renamed to data1 and data2)?
THANKS A LOT AGAIN!!! you have been helping me out quite a bit, and i really appreaciate it!