Thank you Thomas,

I searched on the GWT source code, and learnt several things on
linkers. For the moment, what can interest me is how I could modify
the ...Main.nocache.js file. I thought find a template...
Any idea about this?

- Bertrand.


On 19 sep, 00:53, Thomas Broyer <[email protected]> wrote:
> On 17 sep, 18:32, bgoetzmann <[email protected]> wrote:
>
>
>
>
>
> > Hello,
>
> > I'm developing a GWT 1.6 application with SmartGWT; the application
> > works well! The web page's body I use has of course the code bellow to
> > load the application:
>
> > <script language="javascript" src="/...Main.nocache.js"></script>
>
> > I search a way to dynamically load the application but without
> > success; for example, on a link with code like this, in order to add a
> > script tag to the page's document:
>
> > <a href="javascript:f()">test</a>
>
> > Having f defined like this:
> > function f() {
> >             var script = document.createElement('script');
> >             script.setAttribute('type', 'text/javascript');
> >             script.setAttribute('src', '/...Main.nocache.js');
> >             document.getElementsByTagName('body')[0].appendChild
> > (script);
>
> > }
>
> > But it soesn't work;the behavior is even strange because the entire
> > page content is replaced by the tag html containg a sery of script
> > tags.
>
> That's because the selection scripts (nocache.js) use document.write()
>
> > How can I achieve a dynamic load?
>
> You'd have to write your own selection script. Search the group
> archives and look at Linkers.
--~--~---------~--~----~------------~-------~--~----~
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