🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: style.display i IE

#39474
From: Jarosław Ziółkowski
Date: Sun, 16 Apr 2006 10:41
29 lines
1579 bytes
ethanak napisał(a):
> On 2006-04-16 12:09, Jarosław Ziółkowski wrote:
> 
>>[...]
>>Funkcja jest wywoływana w zdarzeniu odChange selecta.
> 
> 
> Tuś mi bratku :)
> 
> if (rodzaj.selectedIndex == ileśtam) {
> 	/* ciąg dalszy jak poprzednio /*
> 
> gdzie ileśtam to indeks opcji "Dostępność".
> 
> ethanak
Ot, działa w IE ale przestało w operze a zrobione jest tak:

function addText(sForm)
{
    var oForm = document.forms[sForm];
    var ile = document.getElementById("ile");
    if(oForm.rodzaj.selectedIndex==0||oForm.rodzaj.selectedIndex==1)
    {
ile.style.display="inline";
    }else{
ile.style.display= "none";
    }

}
Technical Details
Message-ID: <e1t6vv$165$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <e1t55c$pfq$1@inews.gazeta.pl> <e1t5ha$r2v$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: Jarosław Ziółkowski
 <ziolkowski_jaroslaw@o2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: style.display i IE
Date: Sun, 16 Apr 2006 12:41:00 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 29
Message-ID: <e1t6vv$165$1@inews.gazeta.pl>
References: <e1t55c$pfq$1@inews.gazeta.pl> <e1t5ha$r2v$1@news.onet.pl>
NNTP-Posting-Host: abrw21.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1145184063 1221 83.8.116.21 (16 Apr 2006 10:41:03 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 16 Apr 2006 10:41:03 +0000 (UTC)
In-Reply-To: <e1t5ha$r2v$1@news.onet.pl>
X-Accept-Language: pl, en-us, en
X-User: szczurek1983
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit