I have a memo field that gets written to a Database. My JSP page does a getString("memofield"
and it's pulling the memo field into a variable. Lets call that variable foo so
This is working fine.
Now I have some JavaScript that's using the foo string.
However, I get all kinds of crazy errors becuase my JavaScript won't execpt the string if it has returns in it.
Example. in the Database
row 1 memofield has:
that's fine.
now row 2 memofield has:
and that will now work. So I'm not sure what the easiest way to solve my problem would be. I think it would just be easier to extract all the returns and just set my variable foo equal to hello how are you?
Any ideas, comments, or suggestions would be greatly appreciated
Thanks,
Curt
Code:
String foo = myresultset.getString("memofield");
This is working fine.
Now I have some JavaScript that's using the foo string.
However, I get all kinds of crazy errors becuase my JavaScript won't execpt the string if it has returns in it.
Example. in the Database
row 1 memofield has:
Code:
hello how are you?
now row 2 memofield has:
Code:
hello
how
are
you?
Any ideas, comments, or suggestions would be greatly appreciated
Thanks,
Curt