> wyo said:
>> I'd like to display folder names without line breaks so I tried the
[quoted text clipped - 8 lines]
> alert("j: "+j);
> alert("folders[j]: "+folders[j]);
Missing a quote on the second line.
I am confused though. Are you wanting to replace blanks with or \n?
Or are you wanting to replace \n with ?

Signature
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Lee - 28 Apr 2007 02:10 GMT
-Lost said:
>> wyo said:
>>> I'd like to display folder names without line breaks so I tried the
[quoted text clipped - 10 lines]
>
>Missing a quote on the second line.
Look again.
>I am confused though. Are you wanting to replace blanks with or \n?
>
>Or are you wanting to replace \n with ?
The OP wants to replace blanks with , to prevent line breaks.
--
-Lost - 28 Apr 2007 04:28 GMT
> -Lost said:
>>> wyo said:
[quoted text clipped - 11 lines]
>
> Look again.
OK, I did. I realize I meant to say parenthesis. You are missing an ).
>> I am confused though. Are you wanting to replace blanks with or \n?
>>
>> Or are you wanting to replace \n with ?
>
> The OP wants to replace blanks with , to prevent line breaks.
Ah, was not sure since he said two different things.

Signature
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
wyo - 28 Apr 2007 08:51 GMT
> >> folders[j] = f.replace(/ /g, ' ');
>
> > alert("f after replace: "+f.replace(/ /g,' ');
>
> Missing a quote on the second line.
A ")" is missing but which quote? Still stops working
alert("f after replace: "+f.replace(/ /g," "));
> I am confused though. Are you wanting to replace blanks with or \n?
blanks with
O. Wyss
Lee - 28 Apr 2007 17:42 GMT
wyo said:
>> >> folders[j] = f.replace(/ /g, ' ');
>>
[quoted text clipped - 5 lines]
>
> alert("f after replace: "+f.replace(/ /g," "));
What does "stops working" mean?
what is alerted before it stops?
--
wyo - 29 Apr 2007 14:44 GMT
> What does "stops working" mean?
> what is alerted before it stops?
It doesn't show the alert nor anything else after the script reaches
the "replace". It neither shows an error in the error console of
Mozilla. Ditto IE6 but there isn't an error console.
O. Wyss
Lee - 29 Apr 2007 15:36 GMT
wyo said:
>> What does "stops working" mean?
>> what is alerted before it stops?
>>
>It doesn't show the alert nor anything else after the script reaches
>the "replace". It neither shows an error in the error console of
>Mozilla. Ditto IE6 but there isn't an error console.
>> what is alerted before it stops?
--