
01-14-2005, 07:58 PM
|
 |
|
|
Join Date: Dec 2003
Location: Houston, TX
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by LunaTech
Line 47, 48, and 49 should look like (note, I've replaced the HEX 0D character, the line break, in with a space so it displays right on this page):
Code:
// can't have newlines or carriage returns in javascript string
$mystr = str_replace(" ", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);
Not:
Code:
// can't have newlines or carriage returns in javascript string
$mystr = str_replace("
", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);
The problem is most editors won't read it right. I had to use UltraEdit32, in UNIX mode. To see if you're having the same problem as I did, try spell checking a single line of text with no line breaks. Just like 3 words. If that works fine but more text doesn't - that's probably the problem.
|
Hmmm....I made the changes that you suggested but they did not correct the problem. :ermm:
|