🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: style.display a style w css

#49667
From: Mariusz Chwalba
Date: Mon, 11 Jan 2010 09:29
16 lines
1361 bytes
On Mon, 11 Jan 2010 09:45:53 +0100, mmiarecka <mmiarecka@gmail.com> wrote:

> Mam banalnie prosta funkcje, ktorej zadaniem jest rozpoznanie jaka
> wartosc ma style.display danego elementu. I wszystko dziala ok, gdy
> style mam wpisane inline we wlasciwosci 'style' elementu. natomiast
> gdy wczytuje klase z arkusza styli (osobny plik css) to juz zwraca
> pusta wartosc...
>
> Bede wdzieczna za sugestie co robie nie tak :/

Będę strzelał, że próbujesz odczytać tą wartość zanim plik CSS się
ściągnie. Spróbuj wrzucić tę funkcję do onload dokumentu.

pozdrawiam,
-- 
Mariusz 'koder' Chwalba
Technical Details
Message-ID: <op.u6c3bno9a6rut4@koder>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <02c9d045-f24c-44a9-ac1d-b1104c699ec0@m26g2000yqb.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: "Mariusz Chwalba" <mariusz@chwalba.net>
Newsgroups: pl.comp.lang.javascript
Subject: Re: style.display a style w css
Date: Mon, 11 Jan 2010 10:29:37 +0100
Organization: unorganized
Lines: 16
Message-ID: <op.u6c3bno9a6rut4@koder>
References: <02c9d045-f24c-44a9-ac1d-b1104c699ec0@m26g2000yqb.googlegroups.com>
NNTP-Posting-Host: 91.207.243.244
Mime-Version: 1.0
X-Trace: news.onet.pl 1263202179 6974 91.207.243.244 (11 Jan 2010 09:29:39 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 11 Jan 2010 09:29:39 +0000 (UTC)
User-Agent: Opera Mail/10.10 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit