Article View: pl.comp.lang.javascript
Article #39358Re: problem z FireFox
From: faxe
Date: Sun, 09 Apr 2006 18:53
Date: Sun, 09 Apr 2006 18:53
23 lines
1537 bytes
1537 bytes
kruczkop napisał(a):
> var size = document.all.txtRozmiarMacierzy.value;
document.all to wymysł MS. Choc dziwne, ze nie dziala - bo FF ten syf
też przyjął za poprawny kod. W kazdym razie jesli "txtRomiarMacierzy" to
unikalny id jakiegos elementu to:
document.getElementById('txtRozmiarMacierzy').value
lub lepiej:
document.forms[0].txtRozmiarMacierzy
Jeśli formularz zawierający owe pole nie jest pod indeksem 0 to
oczywiscie nalezy dostosowac.
Na przyszlosc, poprawny sposob odwolywania sie i operowania na
elementach: http://developer.mozilla.org/en/docs/Gecko_DOM_Reference
--
Pozdrawiam
Paweł Zdziarski
Technical Details
Message-ID:
<e1bla2$odb$1@nemesis.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.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<e1atm1$r5k$1@julia.coi.pw.edu.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.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: faxe <niem@m.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: problem z FireFox Date: Sun, 09 Apr 2006 20:53:16 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 23 Message-ID: <e1bla2$odb$1@nemesis.news.tpi.pl> References: <e1atm1$r5k$1@julia.coi.pw.edu.pl> NNTP-Posting-Host: adm47.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1144608898 25003 83.25.90.47 (9 Apr 2006 18:54:58 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 9 Apr 2006 18:54:58 +0000 (UTC) User-Agent: Thunderbird 1.5 (X11/20051201) In-Reply-To: <e1atm1$r5k$1@julia.coi.pw.edu.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit