Closed Thread Icon

Topic awaiting preservation: reading initial values (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8235" title="Pages that link to Topic awaiting preservation: reading initial values (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: reading initial values <span class="small">(Page 1 of 1)</span>\

 
lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-10-2002 00:42

hi people!

i'm trying to read the initial CSS property values (like left, top, clip, ...) and IE returns nothing.

does anybody know a workaround for this? thanks.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-10-2002 00:52

get them after the page loads via an onload event handler



.:[ Never resist a perfect moment ]:.

lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-10-2002 00:58

no no no! the page IS loaded already. the div is created, netscape displays correctly the information, it's only that f#$% IE that returns nothing.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-10-2002 01:32

How are you attempting to read the values?
http://www.ozoneasylum.com/Forum2/HTML/001652.html might help.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-10-2002 08:07

yeppers gonna need to see some code then.



.:[ Never resist a perfect moment ]:.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-10-2002 11:10

This is an IE bug. Unless you set the values through style="" in the tag or through JavaScript, you can't read them.

What I usually end up doing is setting them in the onload event to what I know they already are. Then I can read from them later as necessary.

lacapaca
Nervous Wreck (II) Inmate

From: home sweet home
Insane since: Jun 2002

posted posted 07-10-2002 22:37

thanks, slime. i figured that one out

hmmm. shit. i guess i'll have to do it the UGLY way and i HATE that!

« BackwardsOnwards »

Show Forum Drop Down Menu