开发者

richTextArea.setHTML() function calling throgh anchor tag

开发者 https://www.devze.com 2023-02-23 06:53 出处:网络
richTextArea.setHTML(\"<a href=\'#\' onCli开发者_Go百科ck= MyFunc();>\"+\"Visit W3Schools.com!\"+\"</a>\");

richTextArea.setHTML("<a href='#' onCli开发者_Go百科ck= MyFunc();>"+"Visit W3Schools.com!"+"</a>");

Call the java script function....

 private native void  MyFunc() /*-{
          alert("dhd");
          }-*/;  

fun its not working


The Problem is that you have to use the reference to the object where you want to call the MyFunc()!!!

so look at the GWT-SIte, there is described how to access the Functions!

0

精彩评论

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