|
the problem stemmed from an ajax app which wasn't sending new lines properly. i have found that the problem isn't in the XML, but the javascript below it.
it is kind of interesting though. let's say i have a textarea named/id "foo". in the textarea, i have multiple lines.
var msg = document.getElementById('foo').value;
msg now contains the literal characters \n where there is a new line. when that gets sent into our framework, the backslash was somehow getting taken out.
i ended up replacing \n with the hex line feed character and everything was fine.
msg.replace(/\n/g,"%0A");
we don't have this problem when the text field is submitted over a POST request (in other areas of the app) and then sent through the same API over PHP.
if that doesn't make sense, we have a framework that supports the same API calls from either AJAX or PHP requests.
anyway, problem is solved. thanks for the info.
__________________
Mike
|