开发者

Append javascript content inside gwt dialogBox

I have a js function that shows some content in a div. So I create this div in my html panel and when calling js function from my gwt code the function works fine...(JNSI)

The problem is when I want to show this content in a dialogBox. So what I do is this: I create the dialogBox using uibinder and I create a div inside as follows:

     <g:HTMLPanel ui:field="hmtl_panel">
     开发者_如何学C    <div ui:field="show_to_this_div">
        </div>
     </g:HTMLPanel>

and in the js I use "document.getElementById('show_to_this_div')" as when the div was in the html panel...But nothing happens :-(!


I think you should be using $wnd.document

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜