Jordon C. Mears

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromJordon C. Mears
ToMe
SubjectIE6 faking position: fixed through HTML DOM
Date5 April 2006 17:54
Mark,

I am writing a javascript file that injects a table into an existing
page. I am trying to interfere with the existing environment as as
little as possible (i.e. DOM, html id's, global scope javascript names
(variables and objects)).

So I am trying to build and style this table all through DOM.

I read your article on how to use Microsoft 'expression's.
http://www.howtocreate.co.uk/fixedPosition.html

However, when I try using an expression through dom by doing something
like:

box.style.top = 'expression(ignore = document.body.scrollTop + \'px\')';

Internet Explorer just gave an Invalid Argument Error.

What I found is that you can set an expression in javascript:

box.style.setExpression('top', 'ignore = document.body.scrollTop + \'px\'');

- - - - - - - - - - 

Anyway I wanted to thank you helping me get on the right path to the
answer. I also thought it might be something worth mentioning in your
article.

Regards,

Jordon C. Mears
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.