Unknown Errors Use of getBoxObjectFor() is deprecated. Try to useelement.getBoundingClientRect() if possible.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ameshkin

    Unknown Errors Use of getBoxObjectFor() is deprecated. Try to useelement.getBoundingClientRect() if possible.

    I have no idea whats causing this error on this page. It makes it so
    that the mousovers on the icons don't work.


  • David Mark

    #2
    Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

    On Nov 19, 4:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
    I have no idea whats causing this error on this page.  It makes it so
    that the mousovers on the icons don't work.
    And this is related to your subject line how?
    Whatever.

    Comment

    • ameshkin

      #3
      Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

      Um.
      That's the page that I'm having trouble with you SIMPLETON.



      Check the firebug DEBUG and you will see the error



      On Nov 19, 2:05 pm, David Mark <dmark.cins...@ gmail.comwrote:
      On Nov 19, 4:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
      >
      I have no idea whats causing this error on this page.  It makes it so
      that the mousovers on the icons don't work.
      >
      And this is related to your subject line how?
      >
      >
      >>
      Whatever.

      Comment

      • David Mark

        #4
        Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

        On Nov 19, 5:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
        Um.
        That's the page that I'm having trouble with you SIMPLETON.
        Um, no need to shout. The page starts out:

        <div id="debug">id: t16910<br>page: 1<br></div><!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
        xhtml1/DTD/xhtml1-transitional.dt d">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet " href="css/main.css" type="text/css" />
        <link href="/pv_stylesheet.c ss" rel="stylesheet " type="text/css" /
        >
        <title></title>
        <META NAME="descripti on" CONTENT="">
        <META NAME="keywords" CONTENT="">

        <script type="text/javascript">
        function MM_swapImgResto re() { //v3.0
        var i,x,a=document. MM_sr; for(i=0;a&&i<a. length&&(x=a[i])&&x.oSrc;i+
        +) x.src=x.oSrc;
        }
        function MM_preloadImage s() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; for(i=0;
        i<a.length; i++)
        if (a[i].indexOf("#")!= 0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a
        [i];}}
        }

        function MM_findObj(n, d) { //v4.01
        var p,i,x; if(!d) d=document; if((p=n.indexOf ("?"))
        >0&&parent.fram es.length) {
        d=parent.frames[n.substring(p+1 )].document; n=n.substring(0 ,p);}
        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.fo rms.length;i++)
        x=d.forms[i][n];
        for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++) x=MM_findObj(n, d.layers
        [i].document);
        if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
        }

        function MM_swapImage() { //v3.0
        var i,j=0,x,a=MM_sw apImage.argumen ts; document.MM_sr= new Array; for
        (i=0;i<(a.lengt h-2);i+=3)
        if ((x=MM_findObj( a[i]))!=null){docum ent.MM_sr[j++]=x; if(!x.oSrc)
        x.oSrc=x.src; x.src=a[i+2];}
        }

        </script>
        <style>
        A.WHITE {color: white}
        A:HOVER { text-decoration: underline; color: #ff6600 }
        </style>



        <script type="text/javascript">
        /*
        Script: Core.js
        MooTools - My Object Oriented JavaScript Tools.

        License:
        MIT-style license.

        Copyright:
        Copyright (c) 2006-2007 [Valerio Proietti](http://mad4milk.net/).

        Code & Documentation:
        [The MooTools production team](http://mootools.net/developers/).

        Inspiration:

        [MooTools garbage snipped.]

        You are having trouble indeed. Please close your browser, turn off
        your computer and find another line of work. Thank you for your
        cooperation.
        Check the firebug DEBUG and you will see the error
        Will you pipe down. There was no error.

        Comment

        • dhtml

          #5
          Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

          On Nov 19, 2:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
          Um.
          That's the page that I'm having trouble with you SIMPLETON.
          >

          >
          Check the firebug DEBUG and you will see the error
          >
          On Nov 19, 2:05 pm, David Mark <dmark.cins...@ gmail.comwrote:
          >
          On Nov 19, 4:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
          >
          I have no idea whats causing this error on this page.  It makes it so
          that the mousovers on the icons don't work.
          >
          It is a good idea to read the FAQ.

          In particular:


          | Use the Subject: line to show the type of problem you
          | have but include the question in the body as well.

          WRT your question, it appears that you are calling getBoxObjectFor and
          this is causing an error. The error message you've posted indicates
          that you should instead use getBoundingClie ntRect. You should follow
          this advice because:
          1) it is worth a shot.
          2) it is actually good advice ( I guarantee it).

          Garrett

          Comment

          • dhtml

            #6
            Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

            On Nov 19, 8:51 pm, dhtml <dhtmlkitc...@g mail.comwrote:
            On Nov 19, 2:56 pm, ameshkin <amir.mesh...@g mail.comwrote:
            In particular:http://jibbering.com/faq/#posting
            >
            | Use the Subject: line to show the type of problem you
            | have but include the question in the body as well.
            >
            And this just came up here:


            Comment

            • ameshkin

              #7
              Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

              But the thing is, i'm not using either of those functions. I thought
              maybe a toolbar was and I shut all the add ons and toolbars for
              firefox off, but the same problem exists. Something external is
              calling this function. It doesn't exist anywhere in my code, and I
              have no idea what its for.

              Comment

              • ameshkin

                #8
                Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                you are retarded.

                Comment

                • Diego La Monica

                  #9
                  Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                  On 20 Nov, 20:35, ameshkin <amir.mesh...@g mail.comwrote:
                  But the thing is, i'm not using either of those functions.  I thought
                  maybe a toolbar was and I shut all the add ons and toolbars for
                  firefox off, but the same problem exists.  Something external is
                  calling this function.  It doesn't exist anywhere in my code, and I
                  have no idea what its for.
                  Maybe that you're using a firefox extension that cause that error.

                  Comment

                  • ameshkin

                    #10
                    Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                    On Nov 20, 11:47 am, Diego La Monica <diego.lamon... @gmail.comwrote :
                    On 20 Nov, 20:35, ameshkin <amir.mesh...@g mail.comwrote:
                    >
                    But the thing is, i'm not using either of those functions.  I thought
                    maybe a toolbar was and I shut all the add ons and toolbars for
                    firefox off, but the same problem exists.  Something external is
                    calling this function.  It doesn't exist anywhere in my code, and I
                    have no idea what its for.
                    >
                    Maybe that you're using a firefox extension that cause that error.

                    That's exactly what I thought, so I turned them all off. Still got
                    the errors. But then i restarted my computer, and the error has gone
                    away.

                    Still, I've seen this error on many other pages. So I would still
                    like to know exactly where its coming from.

                    Comment

                    • David Mark

                      #11
                      Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                      On Nov 20, 3:19 pm, ameshkin <amir.mesh...@g mail.comwrote:
                      On Nov 20, 11:47 am, Diego La Monica <diego.lamon... @gmail.comwrote :
                      >
                      On 20 Nov, 20:35, ameshkin <amir.mesh...@g mail.comwrote:
                      >
                      But the thing is, i'm not using either of those functions.  I thought
                      maybe a toolbar was and I shut all the add ons and toolbars for
                      firefox off, but the same problem exists.  Something external is
                      calling this function.  It doesn't exist anywhere in my code, and I
                      have no idea what its for.
                      >
                      Maybe that you're using a firefox extension that cause that error.
                      >
                      That's exactly what I thought, so I turned them all off.  Still got
                      Good idea!
                      the errors.  But then i restarted my computer, and the error has gone
                      away.
                      Turning it off will make it go away as well.

                      [snip]

                      Comment

                      • Conrad Lender

                        #12
                        Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try touse element.getBoun dingClientRect( ) if possible.

                        On 2008-11-20 21:19, ameshkin wrote:
                        That's exactly what I thought, so I turned them all off. Still got
                        the errors. But then i restarted my computer, and the error has gone
                        away.
                        >
                        Still, I've seen this error on many other pages. So I would still
                        like to know exactly where its coming from.
                        Look here:


                        Mozilla's getBoxObjectFor () was never meant to be exposed for general
                        use; but it slipped out, and sites started to use it. Now that the cat's
                        out of the bag, the Mozilla devs can't simply remove the method without
                        breaking a lot of sites (among them Google Calendar). So they've decided
                        to issue a warning in later versions of FF3. This is what you're seeing
                        in Firebug.

                        In *your* case, I'd say the call was probably issued in MooTools.
                        Checking... bingo:


                        The discussion on Bugzilla also mentions Dojo, YUI, Plone, and MochiKit.
                        Cue David in 3.. 2.. 1..


                        - Conrad

                        Comment

                        • ameshkin

                          #13
                          Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                          Thank you, this makes more sense now.

                          Comment

                          • David Mark

                            #14
                            Re: Unknown Errors Use of getBoxObjectFor () is deprecated. Try to useelement.getB oundingClientRe ct() if possible.

                            On Nov 20, 4:36 pm, ameshkin <amir.mesh...@g mail.comwrote:
                            Thank you, this makes more sense now.
                            Glad I could help!

                            Comment

                            Working...