Anyone have anything on this?  I'm trying to do the same (with 1.5)
and having no luck.

So far I've enabled cross site scripting for my GWT app:  <add-linker
name="xs"/>

My bookmarklet looks like this:

var xxxx = function() {
  var m = document.createElement('meta');
  m.setAttribute('http-equiv', 'content-type');
  m.setAttribute('content', 'text/html; charset=UTF-8');
  document.getElementsByTagName('head')[0].appendChild(m);
  var div = document.createElement('div');
  div.setAttribute('id', 'MainContentSec');
  document.body.appendChild(div);
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src = 'http://localhost:8181/MyMod.nocache.js?v=' + (new Date
()) .getTime();
  document.getElementsByTagName('head')[0].appendChild(script);
};
void (xxxx())


I'll go so some arbitrary site like www.google.com, then load the
bookmarklet.

MyMod.nocache.js is loaded.  When nocache.js then trys to load my GWT
app it fails.
After looking at the http request made (using live headers) it show
the browser trying to load
the rest of my GWT app not from localhost (where nocache.js came from)
but from www.google.com.

Any ideas?



On May 6, 11:23 pm, reddot495 <[email protected]> wrote:
> Hi:
>
> I am trying to use abookmarkletto load my GWT application on top of
> any existing webpage 
> (e.g.,http://www.pathf.com/blogs/2007/08/bjax-a-quick-ha/).
> Because the js created by GWT isn't designed for this (e.g., it
> assumes onload hasn't happened already), I anticipate this will
> require messing around with it manually, and before I engaged in this
> Odyssey I thought I would ask if anyone out there has found a solution
> to this -- or has any suggestions.
>
> Thanks.
>
> Jean-Denis

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