I need some serious help here. I am banging my head against the wall on this one. Which I am never happy with. 😃
Ok so here is the problem that I am having. I am trying to write this script but in a dynamic way.
<SCRIPT LANGUAGE='Javascript'>
document.write('<XMP>')
document.write('NRI2C35S1\r')
document.write('--P5-NRI23CH02\r')
document.write('\t-P5-2123\r')
document.write('\t-P21-2178\r')
document.write('--P14-NRI23CH01\r')
document.write('\t-P13-2090\r')
document.write('\t-P9-2089\r')
document.write('--P32-2140\r')
document.write('</XMP>')
</SCRIPT>
I keep having problems when using echo, print(), sprintf(), printf(). Heck anything! It always takes the \r's and makes them CR's but in the source and that totally throws Javascript for a major fit about the \r's being converted. I tried to put them like this:
document.write("NRI2C35S1"+"\r\r")
and it failed horribly. It just dropped two lines instead of putting the \r in. So let me ask is there a display function that does NOT convert the \r into a CR and same with a \n?? Bascially if you run the above javascript you will see it displays a tabbed list. Which is important for my job I am on right now. Thanks so much!
Chad R. Smith