My linker generate .cache.js files instead of .nocache.js (in fact it
use XsLinker). Then, it create a bootstrap script (the .nocache.js)
derived from the one for XsLinker.

But there's a limitation. The bootstrap needs the base path of the GWT
folder (the one with .cache.js files). To find it, the bootstrap needs
to find the script tag of itself. You must add an id attribute to it
containing the name of your module followed by "Loader". If your
bootstrap script is "myscript.cache.js", the id must be
"myscriptLoader".

Then your bookmarklet is:
javascript:(function(){var
%20t=document.createElement('script');t.id='myscriptLoader';t.type='text/
javascript';t.src='http://www.server.com/myscript.nocache.js?
_bk_='+t.id+'&_nocache='+(new
%20Date()).valueOf();document.getElementsByTagName('head')
[0].appendChild(t);})();

Olivier

On 14 juin, 08:17, dino <[email protected]> wrote:
> yes, you misunderstood me :p I don't speak english and have sometimes
> trouble explaining what I wan't :p
> but that sentence is non-trivial and you already answered what I
> needed to know
>
> Sorry that I called your tutorial not good but It looked rather
> confusing. It looks like you are doing some buggy changes, it only
> looks that way. It kept me back for that reason. Maybe I'll better
> reread it and write a java program to automate it.
>
> Oh and I have to check out that plugin Olivier pointed out. I'm just
> curious what that plugin does apart from what keremTyriaky posted.
>
> If you ask my opinion about the end product: Never seen any bugs,
> works very good and is handy if I want to understand some sentences,
> thanks. But I think there are more useful uses then a translator.
>
> On Jun 14, 1:27 am, KeremTiryaki <[email protected]> wrote:
>
> > > I want to write my own bookmarklet in gwt and I didn't found any good
> > > tutorial online.
> > > This guy managed to do so, I want to know why.
> > > And yes, most browsers support bookmarklets
>
> > 5 months ago, I wrote a 
> > tutorialhttp://keremt.blogspot.com/2010/01/making-bookmarklet-with-gwt-20-and...
> > but you are right, it is not a good one :) I will try to make a video
> > about it for better explain.
>
> > And Yes bookmarklets could be a BigDevil. These kind of tools must be
> > open source. They are only JS, They are already open source. But I
> > will share the gwt codes as soon as possible.
>
> > >  how do you create a bookmarklet in gwt? like a casual gwt project?
>
> > Yes it is casual gwt project. but you need to do something after
> > compile java codes. There is some trick about server
> > communication(http://code.google.com/webtoolkit/doc/latest/tutorial/
> > Xsite.html). I explained it in my blog post, but I will give more info
> > about it...
>
> > > Dino:This guy managed to do so, I want to know why.
>
> > Because I need a translate tool like that :) and am I misunderstood
> > you?
>
> > Thanks a lot
>
>

-- 
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