Web Control Positioning

J

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
 
C

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top