On 1 avr, 23:23, myapplicationquestions <[email protected]> wrote: > can inlineHTML be used to load static HTML pages?
Not really: 1. loading probably requires an HTTP request (have a look at RequestBuilder). 2. I wouldn't recommend inserting a full HTML page (with <head>, <title>, <style> etc.) with innerHTML as it might have unexpected side effects (page title replaced with the one from the "injected" page, same for <base href=>, etc.) it's better to inject HTML *fragments* 3. be aware (and warned) that scripts injected using innerHTML won't get run. > I want to harness > the power of HTML designing tools to generate static HTML but use GWT > to load the widget. Please note that there may be some actions defined > in static html. > > Basically my application has number of widgets some of which are coded > through GWT but some of them are really snippets of static html but > they too have to be interactive. > > Also can i embed some GWT elements within the inlineHTML if i want to? > For example i can have an HTMl like > > <div> > xxxx some statis text and a logo > <markerforgwt> > xxxx some statis text and a logo > > </div> > > once i load the static html i need to be able to change markerforgwt > with any gwt element. Is that possible in GWT? Have a look at the HTMLPanel widget. The <markerforgwt> will be an element with a given (known) id= attribute within which you can add a child widget (you can of course have more than one such "placeholder"). If you go for the HTMLPanel, have a look at http://code.google.com/p/google-web-toolkit/issues/detail?id=1937#c18 and following comments about duplicate IDs and/or same HTML fragment used with several HTMLPanels. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
