开发者

Append javascript content inside gwt dialogBox

开发者 https://www.devze.com 2023-04-03 17:18 出处:网络
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)

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

精彩评论

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