🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem z style.marginLeft pod IE

#50433
From: Peter May
Date: Fri, 10 Dec 2010 15:25
20 lines
1459 bytes
W dniu 2010-12-10 16:08, adamschodowy@gazeta.pl pisze:
> pod FF i innych działa mi
> objtomove.style.marginLeft=xleft+movestep+'px'
> pod IE wywala:
> Nieprawidłowy argument.
> Ale
> objtomove.style.marginLeft='222px'
> pod IE działa.
> Jeżeli składam wartośc do kupy w osobnej zmienne a potem ją podaję, np
> var pixl=xleft+movestep+'px'
> objtomove.style.marginLeft=pixl
> też mi wywala błąd, ten sam.

alert(typeof xleft +" | "+ typeof movestep);
objtomove.style.marginLeft=xleft+movestep+'px';

Podaj rezultat powyższego w IE.

-- 
Peter
Technical Details
Message-ID: <idtgpe$jtu$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
References: <idtfq6$3su$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
From: Peter May <peter.may@onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: problem z style.marginLeft pod IE
Date: Fri, 10 Dec 2010 16:25:33 +0100
Organization: http://onet.pl
Lines: 20
Message-ID: <idtgpe$jtu$1@news.onet.pl>
References: <idtfq6$3su$1@inews.gazeta.pl>
NNTP-Posting-Host: 188.146.85.199.nat.umts.dynamic.eranet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1291994736 20414 188.146.85.199 (10 Dec 2010 15:25:36 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Fri, 10 Dec 2010 15:25:36 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
In-Reply-To: <idtfq6$3su$1@inews.gazeta.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit