I was having a similar Issue. I am working on an application that will load a short list of headlines from our website via cross-site json.The gwt files, the json feed and the host HTML page reside on different domains. On the Module XML format page in the developer guide (http://code.google.com/docreader/#p=google-web-toolkit- doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml) the method suggested was including something similar to:
<module> <inherits name="com.google.gwt.core.Core" /> <add-linker name="xs" /> </module> however after uploading the output files I got a couple of permission errors on Firefox, namely: Permission denied to get property Window.document http://192.168.1.145/com.fbg.headlinesreader.HeadlinesReader/6F72E8AB842459823620F4AC11938839.cache.html Line 1 What I did was to remove the <inherits name="com.google.gwt.core.Core" /> element from the module xml file. Mine looks as follows: <module> <inherits name='com.google.gwt.user.User'/> <inherits name='com.google.gwt.user.theme.standard.Standard'/> <inherits name="com.google.gwt.json.JSON" /> <inherits name="com.google.gwt.http.HTTP" /> <entry-point class='com.fbg.headlinesreader.client.HeadlinesReader'/ > <stylesheet src='HeadlinesReader.css' /> <add-linker name="xs" /> </module> I am not sure why but it seems to be working ok now. I Hope this helps Regards, Manuel Aguilera On Nov 25, 1:25 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > can anybody plz help me out to get the right path for cross site > implementation. > > please go through the mail below and make me aware about my approach. > > Thanx & Regards > Manish > > ----- Original Message ----- > From: "Manish Kumar" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Monday, November 24, 2008 11:12 AM > Subject: How to do cross site implementation in GWT > > > Hi everybody, > > > I has working for 2 months on GWT( 1.5.3 ). I have been successful in > > implementing various feature in GWT. Finally I am stuck at end for almost > > 20 > > days in including my GWT project to a set of HTML files with passing a set > > of values to GWT from HTML. > > Previously also I put this issue in this forum as i was trying with JSNI > > and > > xs linker.Now i am running out of time. Time has come for decision.Thanks > > for constant help and co-operation. > > > Now can anybody please confirm my approach? Since still I suspect my > > approach. > > > I have a set of HTML files. I have made and GWT project including some > > widgets , rpc and a external server( calling using request builder ). I > > have > > wriiten a JSNI method in GWT component which is called by a GWT method > > called inside onModuleLoad. > > I have wriiten a js method( on HTML side) which calls JSNI method. > > > I compiled the GWT component using xs linker and added nocache.js in my > > HTML(in HEAD part). I am expecting that this will invoke GWT component as > > js > > method ( html side ) is called on click of a button displayed in HTML. > > > A couple of months back I had got this but I don't understand why this is > > not working this time.There is a remarkable observation is that previously > > I > > had got xs-nocache.js and my JSNI method inside that.This I am not getting > > now. > > > One more thing I would like to know that what is the role of cache.js? > > > Can anybody provide me what is mistake/is this workable or not. > > > Regards > > Manish --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
