Getting error $doc.getBoxObjectFor is not a function in Firefox 3.6

205 views
Skip to first unread message

Prashant

unread,
Feb 3, 2010, 2:17:02 PM2/3/10
to Google Web Toolkit
We use GWT 1.5 for our rest results publishing dashboard. We
extensively use GWT widgets like MenuBar, DialogBox, PopupPanel, etc.
Everything had been working fine till date. However, when we recently
upgraded Firefox to the latest version (3.6), a lot of features seem
to have been broken. For example, clicking on the menu bar doesn't do
anything. Clicks to invoke dialog boxes and popup panels are also
ignored. The application works fine in IE (8.0), Google Chrome (5.0)
and all versions of FF prior to 3.6.
In Firefox 3.6, when I go to Tools -> Console to see the cause of
failure, I see the following:

Error: $doc.getBoxObjectFor is not a function
Source File: ...
Line: 376

Does anyone know a fix or workaround for this issue? I also upgraded
GWT libraries from version 1.5 to 2.0, but that didn't help.

JY

unread,
Feb 11, 2010, 12:36:53 PM2/11/10
to Google Web Toolkit
I'm also facing the same issue. My whole website is unusable in FF 3.6
because of this. Anyone found a workaround?

On Feb 4, 3:17 am, Prashant <prashant.sharma.in...@gmail.com> wrote:
> We use GWT 1.5 for our rest results publishing dashboard. We
> extensively use GWT widgets like MenuBar, DialogBox, PopupPanel, etc.
> Everything had been working fine till date. However, when we recently
> upgraded Firefox to the latest version (3.6), a lot of features seem
> to have been broken. For example, clicking on the menu bar doesn't do
> anything. Clicks to invoke dialog boxes and popup panels are also
> ignored. The application works fine in IE (8.0), Google Chrome (5.0)
> and all versions of FF prior to 3.6.
> In Firefox 3.6, when I go to Tools -> Console to see the cause of
> failure, I see the following:
>

> Error: $doc.getBoxObjectForis not a function

Nathan Williams

unread,
Feb 12, 2010, 9:10:13 AM2/12/10
to Google Web Toolkit
Resolved this in GWT 1.4 (we're version locked due to WAS 6.0) by
modifying the com/google/gwt/user/client/impl/DOMImplMozilla.java file
in gwt-user.jar. I assume a similar strategy would work in later
versions of GWT.

Replace the implementations of the getAbsoluteLeft and getAbsoluteTop
methods with:

return elem.getBoundingClientRect().left -
$doc.documentElement.getBoundingClientRect().left;

and

return elem.getBoundingClientRect().top -
$doc.documentElement.getBoundingClientRect().top;

respectively.

Links I found helpful:
http://stackoverflow.com/questions/1018997/gwt-javascript-exception-in-hosted-mode-result-of-expression-doc-getboxobjectfo
https://bugzilla.mozilla.org/show_bug.cgi?id=409111#c14

Lee Chuen Yang, Jeremy

unread,
Feb 13, 2010, 2:29:57 AM2/13/10
to google-we...@googlegroups.com
It worked. Thanks Nathan!


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


hriess

unread,
Mar 16, 2010, 12:29:34 PM3/16/10
to Google Web Toolkit
Like JY, our website is unusable with FF 3.6. We are using GWT 2.0.3
together with the Eclipse plugin. Unfortunately, I am not experienced
enough, to compile the project with changed GWT source files - the
Eclipse plugin uses the gwt-user.jar (?). Will there be a solution for
this problem in the next days? Or is there someone who can explain how
to use the GWT sources with Eclipse?

خليل بولو

unread,
Mar 16, 2010, 1:07:46 PM3/16/10
to google-we...@googlegroups.com
2010/3/16 hriess hriess....@t-online.de
الترجمة

مثل ج. ي ، موقعنا هو غير قابل للاستخدام مع 3.6 فرنك فرنسي. نحن نستخدم GWT 2.0.3
جنبا إلى جنب مع البرنامج المساعد الكسوف. للأسف ، أنا لست من ذوي الخبرة
بما فيه الكفاية ، لترجمة المشروع مع الملفات التي تم تغييرها GWT المصدر -- في
كسوف المساعد يستخدم gwt - user.jar (؟). لن يكون هناك حل ل
هذه المشكلة في الايام المقبلة؟ أم أن هناك شخص يمكن ان تشرح كيف
لاستخدام مصادر GWT مع كسوف الشمس؟


2010/3/16 hriess <hriess....@t-online.de>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Rich

unread,
Mar 28, 2010, 11:33:32 AM3/28/10
to Google Web Toolkit
Is there any further information on how to modify the gwt-user.jar
file?
Reply all
Reply to author
Forward
0 new messages