Carriage Return ona string problem
SPONSORED LINKS
variable = "hello" + "%0A"
It worked on one on a server. Now i have my string stored on a fresh new script in the variable an the result of the above example is:
hello%0A
Now i have a trouble because i have more text than a simple above filled with tons of %0A and my text, now i made a simple routine like this to use on another place on fresh new script:
function pasatext(){
rarara = "hello" + "%0A"
floater=window.open(‘blank.html’, ‘Report’, ‘toolbar=yes,location=no,resizable=yes,directories=no,menubar=yes,scrollbars=yes’)
floater.document.open()
floater.document.write (‘<HTML><HEAD><TITLE>Report</TITLE></HEAD>’)
floater.document.write ("<link rel=’stylesheet’ href=’../styles/kplmsstyle.css’>")
floater.document.write (‘<body bgcolor="#FFFFFF">’)
floater.document.write (rarara)
floater.document.write (‘</body>’)
floater.document.write (‘</html>’)
floater.document.close()
floater.focus()
}
But when in the example the result on floater.document.write (rarara) print me on screen hello%0A and put the %0A instead a real carriage return. How can i do to make that on my whole string all the %0A work like a real carriage return?
Thank you
Here is the original:
Carriage Return ona string problem