Hi Sachin,
I'm unclear as to whether you want to include GWT in some webpage on the
same domain as where you are hosting your GWT application files, or if you
want to instead include your GWT application on a totally separate page
being served on another domain.

In the case of the former, all you would need to do is include a <script>
tag sourced to your Module.nocache.js file.

You'll notice once you compile your GWT application that the compiler will
generate a number of different <md5>.cache.html and the Module.nocache.js
file. The different <md5>.cache.html files represent different versions of
your GWT application, catered to the browsers supported by GWT. The
Module.nocache.js file is the bootstrap script which sniffs the user's
browser environment and picks out the right version of your application to
serve up. All you need to do to get the application started up is included
the bootstrap script on your main HTML host page.

If you want to bind your GWT application to a specific part of the HTML host
page, all you would need to do is define an element like a div with some id,
say like <div id="myGwtComponent"></div>, and in your entry point class add
your GWT component to the RootPanel by passing in the element id as an
argument to the get method, like so:

RootPanel.get("myGwtComponent").add(myGwtComponent);

In the case where you want to include your GWT application on a webpage
residing on some other domain, you would have to generate the cross-site
version of the GWT application bootstrap script, and add a script tag
sourced to the cross-site bootstrap script on the external webpage.

To generate the cross-site version of the GWT bootstrap script, add the "xs"
linker tag in your module XML file, like so:

<add-linker name="xs" />

In both cases, you'll have to make sure that the GWT application files (i.e.
the .cache.html files) reside in the same directory as the bootstrap script.

Hope that helps,
-Sumit Chandel

On Sun, Oct 5, 2008 at 7:17 AM, Sachin <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> How can I access Application created through GWT throught HTML link ?
> I want to create a pure HTML link suppose <Window>. Then after
> clicking on this link I want to open the Window created through GWT.
> How can I achieve this functionality ?
>
> Sachin.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to