🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jaki obiekt/metoda do zmiennej zawartosci

#50684
From: zlotowinfo
Date: Tue, 29 Mar 2011 11:47
14 lines
1552 bytes
to twoje coś nie chce wogóle działać, zrobiłem tak:

<script>
function changeSpanText(p1)
{ p1=p1.split('~'); document.getElementById(p1[0]).innerText = p1[1];}
</script>

<span id="dupa">innerText placed inside the span element of HTML.<br />
Javascript will change the innerText of this HTML span element. </span>
<br />
<center>
<input type="button" value="Change Span innerText"
onclick="changeSpanText('dupa~zmieniony tekst')" />
</center>
Technical Details
Message-ID: <imsgs0$8at$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <imobbc$i8o$1@inews.gazeta.pl> <4d90fbcf$0$2455$65785112@news.neostrada.pl> <imruil$84e$1@inews.gazeta.pl> <imrvv9$svi$1@news.onet.pl> <ims4co$pq9$1@inews.gazeta.pl> <ims8bo$5uk$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "zlotowinfo" <usuntousun@go2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: jaki obiekt/metoda do zmiennej zawartosci
Date: Tue, 29 Mar 2011 13:47:11 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 15
Message-ID: <imsgs0$8at$1@inews.gazeta.pl>
References: <imobbc$i8o$1@inews.gazeta.pl> <4d90fbcf$0$2455$65785112@news.neostrada.pl> <imruil$84e$1@inews.gazeta.pl> <imrvv9$svi$1@news.onet.pl> <ims4co$pq9$1@inews.gazeta.pl> <ims8bo$5uk$1@news.onet.pl>
NNTP-Posting-Host: 77-45-114-99.sta.asta-net.com.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1301399232 8541 77.45.114.99 (29 Mar 2011 11:47:12 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 29 Mar 2011 11:47:12 +0000 (UTC)
In-Reply-To: <ims8bo$5uk$1@news.onet.pl>
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16543
X-Priority: 3
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-User: zlotowinfo
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit