Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Anyone can help me how to get the dom element?
Anyone can help me how to get the dom element? [message #769667] Thu, 22 December 2011 13:51 Go to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Hi all:
I created a post http://www.eclipse.org/forums/index.php/t/268403/ below, but nobody give me a reply! Obviously the customwidget is created, and then I try to find the dom to write a html code into it, but I get a null value.

I invoke the custome widget like this:



CustomWidget cw = new CustomWidget(parent);
cw.setChatData(...);



but when I test it and get a null error:

#03091456 chart223.render() Error >> Unable to find the container DOM element.

Anyone can help me please? Thank you very much

David
Re: Anyone can help me how to get the dom element? [message #769685 is a reply to message #769667] Thu, 22 December 2011 14:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
when you create your client-side custom widget the corresponding DOM
element is not created immediately. You could add a listener to the
"insertDom" and add your code there.
HTH,
Ivan

On 12/22/2011 3:51 PM, micromms wrote:
> Hi all:
> I created a post http://www.eclipse.org/forums/index.php/t/268403/
> below, but nobody give me a reply! Obviously the customwidget is
> created, and then I try to find the dom to write a html code into it,
> but I get a null value.
>
> I invoke the custome widget like this:
>
>
>
> CustomWidget cw = new CustomWidget(parent);
> cw.setChatData(...);
>
>
>
> but when I test it and get a null error:
>
> #03091456 chart223.render() Error >> Unable to find the container DOM
> element.
>
> Anyone can help me please? Thank you very much
>
> David

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Anyone can help me how to get the dom element? [message #769712 is a reply to message #769685] Thu, 22 December 2011 15:19 Go to previous message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks Ivan, That will be a great help。
Previous Topic:Anyone can help me how to get the dom element?
Next Topic:Update to RAP 1.5M4
Goto Forum:
  


Current Time: Fri Mar 29 12:01:47 GMT 2024

Powered by FUDForum. Page generated in 0.05972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top