🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Dynamiczne dodawanie wiersza tabeli

#39236
From: talthen.z-serwera.o2
Date: Tue, 28 Mar 2006 17:58
17 lines
1373 bytes
Witam,
Oto kod JS:

var gdzie=document.getElementById('morefields');
var newline='<tr><td><input type="checkbox"><td>1<td><input 
type="text"><td><input type="text"><td><input type="checkbox">'
+'<td><input type="text"><td><input type="text"><td><input 
type="text"></tr>';
gdzie.appendData(newline);

Oto fragment htmla:
<table id="morefields">

I teraz pytanie- jak to zrobic, zeby to dzialalo?

Pozdrawiam,
Talthen
Technical Details
Message-ID: <e0btiv$i1u$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: <talthen.z-serwera.o2@nospam.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Dynamiczne dodawanie wiersza tabeli
Date: Tue, 28 Mar 2006 19:58:15 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 21
Message-ID: <e0btiv$i1u$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: pa49.klewki.sdi.tpnet.pl
X-Trace: nemesis.news.tpi.pl 1143568799 18494 217.96.218.49 (28 Mar 2006 17:59:59 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 28 Mar 2006 17:59:59 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit