Deprecated: Function set_magic_quotes_runtime() is deprecated in /home4/mfoster/public_html/cb/forums/include/common.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 34
Cross-Browser.com / [xGetEleAtPoint] Where is it?

Cross-Browser.com

X Library Forums

You are not logged in.

Announcement

New user registration is currently disabled.

#1 May 23, 2010 2:37:17 pm

kevinbe71
New Member
Registered: May 23, 2010
Posts: 1

[xGetEleAtPoint] Where is it?

I found this function on the Cross-Browser.com web site but I can't find it in the X library itself.  Was it accidentally removed in one of the newer versions of the library?  For now I've manually included it manually as is and it works fine, but I'm sure that's not what I'm supposed to do...

      function xGetEleAtPoint(x, y, p) {
        var he = null, z, hz = 0;
        var i, list = xGetElementsByTagName('*', p);
        for (i = 0; i < list.length; ++i) {
          if (xHasPoint(list[i], x, y)) {
            z = parseInt(list[i].style.zIndex);
            z = z || 0;
            if (z >= hz) {
              hz = z;
              he = list[i];
            }
          }
        }
        return he;
      }

Offline

 

#2 May 27, 2010 8:48:32 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: [xGetEleAtPoint] Where is it?

Hi kevinbe71, welcome to the forums! I'll look into it and see what happened to that function. Thanks!

Offline

 

#3 June 6, 2010 5:17:21 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: [xGetEleAtPoint] Where is it?

Hi kevinbe71,

Sorry for the late reply. It looks like xGetEleAtPoint is still in the library, and I confirmed that it is in the current distribution file (x421_xag10_xpp10.zip). It is very possible that I accidentally omitted it from one of the previous distribution files.

Offline

 

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load