spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / diner / realpos2

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Determining Element Page Coordinates, Part 2
IE for Windows and TABLEs

In Part 1 of this series of articles, we created JavaScript functions used to determine the page position of HTML elements, positioned or static, that expose position information about themselves.

In creating the functions, DL_GetElementLeft() and DL_GetElementTop(), we took the opportunity to explore parent-child element hierarchies in great detail. We ended up with functions for IE for Windows and NS6+ that could retrieve the page position of any element...

more or less

With the present article, we will begin an attempt to reduce our margin of error, by looking at browser quirks, rule exceptions and the like.

Those of you who have worked with our functions in your own applications may have noticed that they do not always return the correct values when calculating the page position of elements contained in TABLEs. This is true of IE for Windows and later versions of NS6+, although for completely different reasons.

We'll address the IE quirks in the present article.

It is highly recommended that you have a knowledge of the functions created in Part 1, as we will be expanding the same functions.

The in-page examples will be best appreciated when viewed with IE for Windows as it is the browser under discussion. When viewed with NS6+, for instance, the examples will work but won't give the required result.

So, let's move on...



Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

All Rights Reserved. Legal Notices.
Created: Oct 07, 2002
Revised: Oct 07, 2002

URL: http://www.webreference.com/dhtml/diner/realpos2/