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
It leverages a Javascript file XSLinker.js
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?
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment