I have a problem concerning an ajax-request that should return a string from the server with newlines (n) to fill the textarea. When I do the following just with javascript, it works and shows 2 lines in the textarea: function fillTextArea() document.getElementById(‘myTextArea’).innerHTML = “Line1nLine2″; But if I get the value from the server using ajax, t Read …
via Android Application Development » Search Results » ajax:
Ajax response with newlines for textarea
I have a problem concerning an ajax-request that should return a string from the server with newlines (n) to fill the textarea.
When I do the following just with javascript, it works and shows 2 lines in the textarea:
function fillTextArea()
document.getElementById(‘myTextArea’).innerHTML = “Line1nLine2″;
But if I get the value from the server using ajax, t Read More…
For more info: Ajax response with newlines for textarea
Android Application Development » Search Results » ajax