I found something about "Script Injection" and tried the following code to 
add the script in my HTML page (on EntryPoint - method):

        Document doc = Document.get();
        ScriptElement script = doc.createScriptElement();
        script.setSrc("
http://www.jscache.com/wejs?wtype=cdswritereviewlg&amp;uniq=303&amp;locationId=206597&amp;lang=en_AU&amp;border=true<http://www.jscache.com/wejs?wtype=cdswritereviewlg&uniq=303&locationId=206597&lang=en_AU&border=true>
");
        script.setType("text/javascript");
        script.setLang("javascript");
        doc.getBody().appendChild(script);

and added the other code as String in an HTML-Widget.
But there is the same issue. Only the text: 
"Review Grand Hotel 
Wien<http://www.tripadvisor.com.au/Hotel_Review-g190454-d206597-Reviews-Grand_Hotel_Wien-Vienna.html>
"
appears!

Am Samstag, 21. September 2013 11:21:49 UTC+2 schrieb marian lux:
>
> I want do display e.g. the following widget in an GWT HTML-widget:
>
> <div id="TA_cdswritereviewlg303" class="TA_cdswritereviewlg">
> <ul id="PFAsdj" class="TA_links xWEBQ5e">
> <li id="nvVscFx" class="cSICfMRvGlKe">Review <a href="
> http://www.tripadvisor.com.au/Hotel_Review-g190454-d206597-Reviews-Grand_Hotel_Wien-Vienna.html";>Grand
>  
> Hotel Wien</a></li>
> </ul>
> </div>
> <script src="
> http://www.jscache.com/wejs?wtype=cdswritereviewlg&amp;uniq=303&amp;locationId=206597&amp;lang=en_AU&amp;border=true<http://www.jscache.com/wejs?wtype=cdswritereviewlg&uniq=303&locationId=206597&lang=en_AU&border=true>
> "></script>
>
>
> The widget id displayed fine here:
> http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro
>
> But on GWT I don't see the widget. Only the Text.
>
> In previous projects I inserted iframes in GWT HTML-widgets and it worked 
> fine.
> How can I display this javascript-widget above in an GWT HTML-Widget?
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to