Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

page element - absolute position
Im using IE 6/7 / ASP.NET / Javascript.

I need to determine the absolute position of elements on my page client
side. In summart, I need to know if an event triggered  mouse position
appears inside a div.

Now the rub is that some divs may be absolutely positioned and some may be
positioned relatively.  I know I can get the position of the mouse using
event.clientX or clientY.

But when determining the absolute position of an element, im stumped I know
I can use offet.Left, but if the element is nested then does this mean I
have to keep goinfg up the parent hierarchy until I reach the body to find
its position or is there a simpluer way, Im sure there is >

Thanks.



Report this thread to moderator Post Follow-up to this message
Old Post
Microsoft Newsserver
04-18-08 01:32 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP .NET archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:20 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.