Forum Moderators: open

Message Too Old, No Replies

Firefox automatically removes multiple spaces?

         

muirfield

6:43 pm on Sep 19, 2005 (gmt 0)

10+ Year Member



Hello. First time posting.

I've developed a website using java/javascript in IE6, and now I'm testing it in Firefox. I've run across a very annoying problem. Firefox seems to be removing spaces from my strings. Not just leading and trailing spaces, but also parsing series of spaces within the string down to one space. A simple example (the dots are spaces):

alert("...hello...there...")
in IE, shows:...hello...there...
in Firefox :.hello.there.

This is a big problem, since we query databases that have fields with multiple spaces that we need to maintain. Is there any way of disabling this unwanted parsing?

I'm really surprised the default behavior of FF would allow this?!

Thanks.

muirfield

garann

8:28 pm on Sep 19, 2005 (gmt 0)

10+ Year Member



If you use
 
instead of just a space, Firefox should recognize that you want the whitespace there.

FlipFlops

8:32 pm on Sep 19, 2005 (gmt 0)



Just to confirm that garann offered, I just tested firefox and it handles multiple   without any problems at all.

muirfield

8:38 pm on Sep 19, 2005 (gmt 0)

10+ Year Member



Thanks for the info. Got it working.

muirfield