Home All Groups Group Topic Archive Search About
Author
21 Dec 2005 4:39 PM
Joe90
I need to set the location of a popup window to cover a dynamically postioned
control.

Setting the position on the popup is no problem, but how do I get the
position of the dynamic control ?

Any help appreciated
Joe90

Author
22 Dec 2005 6:21 AM
chris
you can use javascirpt to grab the x, y position.

e.g
var obj = document.getElementById('xxx'); xxx = the client id of the
control.
var x = obj.offsetLeft; / obj.style.posLeft;
var y = obj.offsetTop; / obj.style.posTop;

P.S. the obj should not be a child element, the value will be zero if the
control is a child element.

Show quoteHide quote
"Joe90" <Jo***@discussions.microsoft.com> wrote in message
news:12FB8165-0996-4133-AA73-9B5B071EBBFD@microsoft.com...
>I need to set the location of a popup window to cover a dynamically
>postioned
> control.
>
> Setting the position on the popup is no problem, but how do I get the
> position of the dynamic control ?
>
> Any help appreciated
> Joe90