Basically, I want to use something like this:
I also found this code:
.........
| final String scriptStr = "!function(d,s,id){" + " var js,fjs=d.getElementsByTagName(s)[0];" |
| + " if(!d.getElementById(id)){" + "js=d.createElement(s);" |
| + " js.id=id;js.src='//platform.twitter.com/widgets.js';" |
| + " fjs.parentNode.insertBefore(js,fjs);" |
| + " }}(document,'script','twitter-wjs');"; |
| final ScriptElement scriptElement = Document.get().createScriptElement(scriptStr); |
| // we place the script just after the body tag |
| bodyElement.appendChild(scriptElement); |
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment