Create a jsni method which takes a string and just does an 'eval' - as long as you are sure that the JS is safe Ian
http://examples.roughian.com 2009/6/10 Ganaga <[email protected]> > > Hello, > > I have a Java object (client side) that contains a snippet of > Javascript. > > Example: String s = "window.alert();" > > Is there a way to execute the content of that String ? I mean is there > a way to generate Javascript code on the fly ? > > Thanks > > Ganael > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
