Add the <script> separately:
Document doc = Document.get();
ScriptElement script = doc.createScriptElement();
script.setSrc("http://...");
doc.getBody().appendChild(script);
Then you can add the rest of the HTML and it should work.
b
On Oct 24, 1:32 pm, vokke <[email protected]> wrote:
> Hello newsgroup.
> I want to insert an addthis-button to my GWT-Project.
> When I try to insert the html-code into an HTML-Widget or HTMLPanel-
> Widget, the button shows up,
> but does not work properly.
> It als works when I put it inside the <body>-tags on the base html
> page.
> What do I do wrong?
>
> Here's the addthis-button code:
> <code>
> <!-- AddThis Button BEGIN -->
> <a class="addthis_button" href="http://www.addthis.com/bookmark.php?
> v=250&pub=xa-4ae3631c6412b94f"><img src="http://s7.addthis.com/
> static/btn/v2/lg-bookmark-en.gif" width="125" height="16"
> alt="Bookmark and Share" style="border:0"/></a><script type="text/
> javascript" src="http://s7.addthis.com/js/250/
> addthis_widget.js#pub=xa-4ae3631c6412b94f"></script>
> <!-- AddThis Button END -->
>
> </code>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---