Article View: pl.comp.lang.javascript
Article #39546jak odczytac w JS wartos onchange
From: tomek
Date: Fri, 21 Apr 2006 09:24
Date: Fri, 21 Apr 2006 09:24
27 lines
1329 bytes
1329 bytes
Witam.
mam w kodzie
<select id="s" onchange="funkcja(this.value)">...</select>
i w JS
var e = document.getElementByID('s');
var x = e.onchange;
alert(x);
no i chcialbym aby w tym x bylo "funkcja(this.value)"
i potem tę funckję chcailbym wywolac (tutaj eval('funkcja(this.value)') ?)
ale
e.onchange daje mi funtion onchange(event){...}
chodzi mi tylko o pobranie z HTMLa wartosci z onchange i wywolwanie tej
funkcji w onchange
--
pozdrawiam
tomek
Technical Details
Message-ID:
<e2a884$obh$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.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!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: tomek <tomek-a@USUN_TOgazeta.pl> Newsgroups: pl.comp.lang.javascript Subject: jak odczytac w JS wartos onchange Date: Fri, 21 Apr 2006 11:24:21 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 27 Message-ID: <e2a884$obh$1@nemesis.news.tpi.pl> Reply-To: tomek-a@USUN_TOgazeta.pl NNTP-Posting-Host: abon247.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1145611332 24945 83.8.29.247 (21 Apr 2006 09:22:12 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Fri, 21 Apr 2006 09:22:12 +0000 (UTC) User-Agent: Thunderbird 1.5 (Windows/20051201) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit