On Thu, Dec 2, 2010 at 2:23 AM, eggsy84 <jimbob...@hotmail.com> wrote:

> Hi Jeff,
>
> Thank you for getting back to me.
>
> Yes that is exactly the problem it appears to try and fetch the code
> from the users site which obviously won't wrong.
>
> I shall see if I can leverage your solution somehow. I'm trying to
> keep the JS they have to add to their website small and uncomplicated.
>
> Another area I have looked into is making my own Linker.
>
> If you look at the current GWT XS Linker
>
>
> http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSLinker.java&d=8
>
> It leverages a Javascript file XSLinker.js
>
>
> http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSTemplate.js&d=8
>
> And this defines a base that is used when scripts are included. Note
> the compiledScriptTag variable.
>
> If I can force the base it may work?
>

Probably, but I think you're underestimating your users, and making more
work for yourself. Ideally, all they would do is drop a file into a special
directory on their server, and then update their script to load that file.
If thousands of sites can handle GA, surely your stuff is not so difficult?

Cheers,
jec

>
> Eggsy
>
>
> On Dec 2, 12:12 am, Jeff Chimene <jchim...@gmail.com> wrote:
> > On 12/01/2010 04:03 PM, eggsy84 wrote:
> >
> >
> >
> > > Hi all,
> >
> > > Can anyone explain to me why you cannot include Google web toolkit
> > > scripts Asynchronously like Google Analytics:
> >
> > >http://googlecode.blogspot.com/2009/12/google-analytics-launches-asyn.
> ..
> >
> > > I ask because my GWT code is ultimately going to be used on a variety
> > > of websites (using the XS linker) and if for any reason my server is
> > > down and cannot process a request for the Javascript then it has the
> > > effect of preventing the website from loading due to synchronous
> > > nature if Web browser script evaluation.
> >
> > > I have tried including my GWT *.nocache.js like Google do for their
> > > Analytics but it fails to load the subsequent browser specific
> > > compiled units as it tries to obtain them from an incorrect location.
> > > It seems to be due to the base URL not being defined.
> >
> > Notice that the GA code bootstraps from the user's server.
> >
> > You'll probably want something similar, in that you provide a bootstrap
> > function that loads from your customer's site. That function then loads
> > your GWT code. If the load fails, it fails on your customer's site, not
> > your site. You can take action since your customer's page has loaded,
> > but with an exception (it hasn't loaded your GWT code).
> >
> > There may be other, unexplored complications to this solution.
> >
> > > Any ideas guys?
> >
> > > Eggsy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to