Connecting Tech Pros Worldwide Forums | Help | Site Map

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

ameshkin
Guest
 
Posts: n/a
#1: Nov 19 '08
I have no idea whats causing this error on this page. It makes it so
that the mousovers on the icons don't work.

http://www.promoventures.com/quotes2/

David Mark
Guest
 
Posts: n/a
#2: Nov 19 '08

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


On Nov 19, 4:56*pm, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
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.
ameshkin
Guest
 
Posts: n/a
#3: Nov 19 '08

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


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

http://www.promoventures.com/quotes2/

Check the firebug DEBUG and you will see the error



On Nov 19, 2:05*pm, David Mark <dmark.cins...@gmail.comwrote:
Quote:
On Nov 19, 4:56*pm, ameshkin <amir.mesh...@gmail.comwrote:
>
Quote:
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.
David Mark
Guest
 
Posts: n/a
#4: Nov 20 '08

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


On Nov 19, 5:56*pm, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
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.dtd">
<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.css" rel="stylesheet" type="text/css" /
Quote:
>
<title></title>
<META NAME="description" CONTENT="">
<META NAME="keywords" CONTENT="">

<script type="text/javascript">
function MM_swapImgRestore() { //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_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 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("?"))
Quote:
>0&&parent.frames.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.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers
[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for
(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.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.
Quote:
Check the firebug DEBUG and you will see the error
Will you pipe down. There was no error.
dhtml
Guest
 
Posts: n/a
#5: Nov 20 '08

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


On Nov 19, 2:56*pm, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
Um.
That's the page that I'm having trouble with you SIMPLETON.
>
http://www.promoventures.com/quotes2/
>
Check the firebug DEBUG and you will see the error
>
On Nov 19, 2:05*pm, David Mark <dmark.cins...@gmail.comwrote:
>
Quote:
On Nov 19, 4:56*pm, ameshkin <amir.mesh...@gmail.comwrote:
>
Quote:
Quote:
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:
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.

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 getBoundingClientRect. You should follow
this advice because:
1) it is worth a shot.
2) it is actually good advice ( I guarantee it).

Garrett

dhtml
Guest
 
Posts: n/a
#6: Nov 20 '08

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


On Nov 19, 8:51*pm, dhtml <dhtmlkitc...@gmail.comwrote:
Quote:
On Nov 19, 2:56*pm, ameshkin <amir.mesh...@gmail.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:
http://groups.google.com/group/comp....61bfb50?hl=en#

ameshkin
Guest
 
Posts: n/a
#7: Nov 20 '08

re: Unknown Errors Use of getBoxObjectFor() is deprecated. Try to useelement.getBoundingClientRect() 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.
ameshkin
Guest
 
Posts: n/a
#8: Nov 20 '08

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


you are retarded.
Diego La Monica
Guest
 
Posts: n/a
#9: Nov 20 '08

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


On 20 Nov, 20:35, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
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.
ameshkin
Guest
 
Posts: n/a
#10: Nov 20 '08

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


On Nov 20, 11:47*am, Diego La Monica <diego.lamon...@gmail.comwrote:
Quote:
On 20 Nov, 20:35, ameshkin <amir.mesh...@gmail.comwrote:
>
Quote:
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.
David Mark
Guest
 
Posts: n/a
#11: Nov 20 '08

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


On Nov 20, 3:19*pm, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
On Nov 20, 11:47*am, Diego La Monica <diego.lamon...@gmail.comwrote:
>
Quote:
On 20 Nov, 20:35, ameshkin <amir.mesh...@gmail.comwrote:
>
Quote:
Quote:
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.
>
Quote:
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!
Quote:
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]
Conrad Lender
Guest
 
Posts: n/a
#12: Nov 20 '08

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


On 2008-11-20 21:19, ameshkin wrote:
Quote:
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:
https://bugzilla.mozilla.org/show_bug.cgi?id=340571

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:
http://mootools.lighthouseapp.com/pr...-is-deprecated

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


- Conrad
ameshkin
Guest
 
Posts: n/a
#13: Nov 20 '08

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


Thank you, this makes more sense now.

David Mark
Guest
 
Posts: n/a
#14: Nov 20 '08

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


On Nov 20, 4:36*pm, ameshkin <amir.mesh...@gmail.comwrote:
Quote:
Thank you, this makes more sense now.
Glad I could help!
Closed Thread