Ok, I have just encountered a rather odd issue with javascript. I have some text that I want to be dynamic and it will change when users select various options on the web page. I also want said dynamic text to include EXTRA whitespace. (i.e. "blah blah blah blah blah blah"). Now, if I attempt to set the text in my javascript code, in IE it works just fine and the spaces show up. However, in Netscape 6.x and above, it eats up all the extra whitespace.
Thus the next thing I tried was inserting "& n b s p ;" or "& # 1 6 0 ;" (minus the spaces) into the javascript string. Much to my surprise, when displayed, it came out with "& n b s p ;" and "& # 1 6 0 ;". It did not replace the codes with spaces. Does anyone know of ANY way to get netscape to dynamically display white space this way? I can't just add spaces and I can't use the codes. Where does that leave me??
TIA.
Thus the next thing I tried was inserting "& n b s p ;" or "& # 1 6 0 ;" (minus the spaces) into the javascript string. Much to my surprise, when displayed, it came out with "& n b s p ;" and "& # 1 6 0 ;". It did not replace the codes with spaces. Does anyone know of ANY way to get netscape to dynamically display white space this way? I can't just add spaces and I can't use the codes. Where does that leave me??
TIA.