🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39239

Re: Dynamiczne dodawanie wiersza tabeli

#39239
From: talthen.z-serwera.o2
Date: Wed, 29 Mar 2006 18:33
24 lines
1779 bytes
Użytkownik "ethanak" <sweethanak@buziaczek.pl> napisał w wiadomości 
news:e0dbgc$248$1@news.onet.pl...
> Po pierwsze: appendData jest dla typu text.
> Po drugie - musisz mieć tbody (nie chce mi się wyjaśniać dlaczego), czyli 
> najprościej by było:
>
> <table>
> <tbody id="morefields">
>
> I dalej na przykład:
>
> var gdzie=document.getElementById('morefields');
> var newline='<td>....'; /* bez tr */
> var tr=document.createElement('tr');
> tr.innerHTML=newline;
> gdzie.appendChild(tr);

Tak tez probowalem (ale bez tbody) i to nie dziala jak trzeba (nawet z 
tbody).
Wszystko laduje w pierwszej kolumnie nowego wiersza (tam jakby tagi <td> w 
newline byly zupelnie ignorowane).

Pozdrawiam,
Talthen 
Technical Details
Message-ID: <e0ejv1$pcf$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e0btiv$i1u$1@nemesis.news.tpi.pl> <e0dbgc$248$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: <talthen.z-serwera.o2@nospam.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Dynamiczne dodawanie wiersza tabeli
Date: Wed, 29 Mar 2006 20:33:50 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 26
Message-ID: <e0ejv1$pcf$1@atlantis.news.tpi.pl>
References: <e0btiv$i1u$1@nemesis.news.tpi.pl> <e0dbgc$248$1@news.onet.pl>
NNTP-Posting-Host: pa49.klewki.sdi.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1143657250 25999 217.96.218.49 (29 Mar 2006 18:34:10 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 29 Mar 2006 18:34:10 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit