You can use eval() from JSNI to execute javascript strings rather than  
trying to inject them into the HTML.

-jason

On Jun 3, 2009, at 9:13 AM, JF wrote:

>
> Let's say i have a String js = "<script>function x() {....} x();</
> script>";
>
> i want to be able to inject that string. I can do it with setHTML(js),
> but x(); is not called.
>
> On Jun 3, 10:27 am, Jamie <[email protected]> wrote:
>> I think you are talking about 
>> this:http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects 
>> ....
>>
>> Or are you talking about adding some javascript to a GWT HTML( )
>> object?
>>
>> Jamie
>> -----------------------
>> Search for analog and digital television broadcast antennas in your
>> area:http://www.antennamap.com/
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to