Hi Sumit,

     First of all, thank you very much for your response. I'll try your
solution immediately. After that, I'd like share the successful result to
the group(I hope it would be succeed.)

Thanks again,
Sammi


On Mon, Oct 27, 2008 at 11:50 AM, Sumit Chandel <[EMAIL PROTECTED]>wrote:

> Hi Sammi,
> I think what you need for the cross-site setup is the cross-site bootstrap
> script generated by the GWT compiler.
>
> You can configure the GWT compiler to generate a cross-site bootstrap
> script by adding the <add-linker name="xs" /> tag in your module XML file.
> The generated module.nocache.js bootstrap script will now be capable of
> cross-site loading.
>
> By the way, I noticed you mentioned that you're using gwt.js as your
> application bootstrap script, which seems to suggest that you're using an
> older version of GWT (1.4 or prior). If this is the case, I would strongly
> advise upgrading to GWT 1.5.3. If for some reason you have to stick to an
> older version of GWT, you may or may not be able to load your application in
> a cross-site fashion depending on which version of GWT you're using.
>
> In GWT 1.4, the cross-site bootstrap script is generated by default and can
> be found in the output directory with the name module-xs.nocache.js. In GWT
> 1.3, cross-site bootstrapping is not available.
>
> Hope that helps,
> -Sumit Chandel
>
>
> On Fri, Oct 24, 2008 at 4:06 PM, Sammi <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>>    We use amazon web store application.
>>
>> The domain name is store.mydomain.com, the ip is 1.2.3.4;  I can not
>> upload any files to this domain.
>>
>> Another domain we created is www.mydomain.com, the ip is different.
>> 2.2.3.4. This is my own server, I can upload files to it.
>>
>> And then, I need create an application by modify an specific web
>> page(named mystore.html) on store.mydomain.com. I can only change it
>> by an submit its content by TextArea Input in an form.
>>
>> I choose using GWT to extend the pages function. That means:
>>
>> 1.  I need add <script src="http://www.mydomain.com/files/
>> *.nocache.js"> in mystore.html.
>> 2.  upload all gwt comiled files to  www.mydomain.com/files/
>>
>> Because the gwt js file is not belong to the same domain of
>> mystore.html, a access denied error invoked in my firebug error
>> console.
>>
>> When I dig into the gwt compiled code, I found gwt it is the following
>> code which invokes the access denied error:
>>
>> $wnd=parent, var [EMAIL PROTECTED]
>>
>> "parent" refers to its parent html page.
>>
>> I understand that it is because the Same Domain Constraints.
>>
>> I am wondering If I could break through the access denied restrict by
>> upload my gwt js files to another domain,like:
>>
>>   gwtjs.store.mydomain.com
>>
>> The ip is same as my own server, www.mydomain.com, that is 2.2.3.4,
>> it's different with store.mydomain.com.
>>
>> So it is the subdomain of store.mydomain.com, right? but the ip is
>> different, it is not the same server.
>>
>> Can I use this way to access mystore.html content?
>>
>> Any suggestion is welcome. Thanks in advance.
>>
>> Sammi
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> >
>


-- 
Sammi
http://code.google.com/p/openorg

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