Welcome Guest Search | Active Topics | Sign In | Register

EO Dialog, how can i get the "top" and "left" of my current modal dialog by java Options
xtremexploit
Posted: Sunday, February 24, 2008 10:53:10 AM
Rank: Member
Groups: Member

Joined: 2/24/2008
Posts: 27
EO Dialog, how can i get the "top" and "left" of my current modal dialog by javascript ?
eo_support
Posted: Sunday, February 24, 2008 11:16:33 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
Hi,

The dialog itself does not provide any methods for that. But I believe you can do that by getting the DHTML element of the dialog first, then use its offsetLeft/offsetHeight to get the dialog's position. For example:

Code: JavaScript
var e = document.getElementById("Dialog1");
var left = e.offsetLeft;
var top = e.offsetTop;


You may need to adjust those value according to the marginTop or marginLeft of your document.body.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.