On Feb 12, 12:43 pm, David Mark <dmark.cins...@gmail.com> wrote:
> On Feb 12, 2:38 pm, Geoffrey Summerhayes <sumr...@gmail.com> wrote:
>
> > On Feb 12, 2:17 pm, David Mark <dmark.cins...@gmail.com> wrote:
>
> > > On Feb 12, 12:58 pm, Geoffrey Summerhayes <sumr...@gmail.com> wrote:
>
> > > > I'm trying to select a row from a table in a 'dialog box' where the
> > > > HTML is (boiled down):
>
> > > > <body>
> > > > <div style='position:absolute; display:block;...'>
>
> > > The "display:block" rule is redundant here.
>
> > No big. It's coming from a combination of
> > stylesheet rules.
>
> I am not sure what you mean by that, but you can safely remove it from
> this attribute.
>
>
>
> > > > So, how do I get this to work correctly with IE and FF?
>
You can use position: relative for the div.
> > > Are you trying to create a generalized solution? If so, see the
> > > parentNode property. If not, just adjust for the scrollTop/Left
> > > properties of the known scrolling container.
>
Yep.
> > parentNode it is then, I'm trying to get as many
> > generalized sol'ns as possible to sit in one file
> > and cut down on the amount of specific javascript
> > that is required.
>
> That isn't always the best solution. Realize that iterating through
> parentNodes will slow down your position calculation. A generalized
> offset position function should have a parameter that allows this step
> to be skipped for elements that are known not to scroll. A parameter
> to pass a known scrolling container (or containers) can also be used
> to skip unnecessary iterations.
By specifying a common container it can be more efficient.
getOffsetCoords(el, cont) {
}
This link may be helpful:
http://dhtmlkitchen.com/ape/test/tes...offsetTop.html
Anne VK is trying to standardize these:
http://dev.w3.org/csswg/cssom-view/#...ementfrompoint
Could prob use some help.
Garrett