Yes, of course. My gwt application is used to generate web applications dynamically. The user configure its web application using a wysiwyg editor (well sort of), this configuration is then used by the gwt application to create widgets at runtime. In the application editor, it's possible to add raw html blocks. In this block the user may insert javascript code.
If it's really not possible to inject javascript in this way, we may ask the user to put all it's javascript code in one place and load this as an external js script file. But this would be seen (at least by me ;-) ) as a less flexible solution... S. On 4 fév, 12:21, Litty Preeth <[email protected]> wrote: > May I know why u want this? > > On Wed, Feb 4, 2009 at 3:41 PM, sgaide <[email protected]> wrote: > > > Hi, > > > I'm looking for a clear answer about the possibility to inject > > javascript into the DOM using HTML widget. > > I have found two threads about this, with no definitive answers: > > > <http://groups.google.com/group/Google-Web-Toolkit/browse_thread/ > > thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gst&q=javascript > > +HTML#a60c36f305f21337<http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Ath...> > > > and > > > <http://groups.google.com/group/Google-Web-Toolkit/browse_thread/ > > thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gst&q=javascript > > +HTML#44c22a52f86feb36<http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Ath...> > > > My application needs to inject some javascript code at runtime (the > > code is provided at runtime and can not be inserted in the html page > > or loaded using a 'dynamic' script file). The only way I found to do > > that is to create an HTML widget. The results are highly dependant on > > the browser : > > > - with Firefox all works pretty well > > - with Safari and IE7 it doesn't work at all (javascript code is not > > executed). Using Safari development inspector I can see the javascript > > code in the DOM, but it's not interpreted by the browser. > > > So is it really possible to inject javascript using an HTML widget ? > > if yes, how ? if no, is there any other way to do it ? > > > Thanks a lot, > > > regards, > > > Sebastien. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
