Hi,
I have to call a javascript function in the embedded html object in GWT
code.
I knew that I can achieve this by JSNI but is there a way in which I can
call the javascript function defined in the html page in the embedded html
objects directly?
*Eg GWT code:*
SafeHtmlBuilder sb = new SafeHtmlBuilder();
sb.appendHtmlConstant(" <span onmouseover=\"mouseOverFunction();\"> Mouse
over text </span>");
*Javascript function in my html page:*
<script type="text/javascript" language="javascript">
function mouseOverFunction (){
alert('hello');
}
</script>
I wanted to call the javascript function mouseOverFunction() which I have
created in my html on mouse over of my span object created in GWT.
Please suggested me how I can achieve this.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.