I use textBox.getAbsoluteLeft() instead of txtBox.getElement().getAbsoluteLeft() (it eventually does the same what txtBox.getElement().getAbsoluteLeft() does, but it works for me, strange...)
In addition, if it a simple text tooltip, you can manipulate HTML TITLE attribute http://htmlhelp.com/reference/html40/attrs.html On Jan 10, 10:01 am, SVR <[email protected]> wrote: > I have a poppanel which I want to position like a tooltip to a > textbox. I am using textbox's getAbsoluteTop and getAbsoluteLeft to > position the popup. However I get the following exception when doing a > > txtBox.getElement().getAbsoluteLeft() > > What is wrong or is there any other way to achieve this? > thanks > > com.google.gwt.core.client.JavaScriptException: (TypeError):> > doc.getBoxObjectFor is not a function > > fileName:http://localhost:9080 > > lineNumber: 4 > > stack: ([object HTMLHtmlElement],[object > > HTMLInputElement])@http://localhost:9080:4 > > @:0 > > (null,459230,[object MouseEvent],[object HTMLInputElement],[object > > GWTJavaObject])@ > > http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56 > > > > > > > > > ([object MouseEvent])@http://localhost:9080:108 > > ((function (evt) {var listener, curElem = this;while (curElem && > > !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if > > (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if > > (__gwt_makeJavaInvoke(1)(null, 393266, listener)) > > {__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem, > > listener);}}}),[object HTMLInputElement],[object > > Object])@http://localhost:9080:65 > > @:0 > > (null,98,(function (evt) {var listener, curElem = this;while (curElem > > && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if > > (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if > > (__gwt_makeJavaInvoke(1)(null, 393266, listener)) > > {__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem, > > listener);}}}),[object HTMLInputElement],[object > > Object])@ > > http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56 > > > > > > > > > ([object MouseEvent])@http://localhost:9080:49 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
