Article View: alt.pl.programy.flash-5
Article #33791Drobny problem z wycinaniem stringów
From: Flipi
Date: Tue, 23 Jan 2007 14:53
Date: Tue, 23 Jan 2007 14:53
17 lines
1305 bytes
1305 bytes
Witam,
Przy importowaniu XML'a napotkałem problem ze znakami nowej linii.
Znalazłem rozwiązanie na flash-zone w takiej postaci:
String.prototype.swap=function(from,to) {
return this.split(from).join(to);
}
I przed wyświetleniem stringa wykonuje coś takiego:
opis_obiektu=opis_obiektu.swap("\r\n","\n");
Tylko przy okazji z treści "poznikały" mi wszystkie litery 'n'
Czy ktoś może podsunąć mi jakieś rozwiązanie problemu?
Pozdrawiam,
Flipi
Technical Details
Message-ID:
<ep57hl$o68$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Flipi <flipi.no@spam.poczta.fm> Newsgroups: alt.pl.programy.flash-5 Subject: Drobny problem z wycinaniem stringów Date: Tue, 23 Jan 2007 15:53:12 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 17 Message-ID: <ep57hl$o68$1@atlantis.news.tpi.pl> NNTP-Posting-Host: vz122.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1169564021 24776 80.55.181.122 (23 Jan 2007 14:53:41 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 23 Jan 2007 14:53:41 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit