On 28 oct, 17:18, "[email protected]"
<[email protected]> wrote:
> Hi!
>
> I cannot find a ready reference to this anywhere, which is puzzling,
> since it is such a mundane operation to accomplish. I have a GWT
> application running in the browser. If the user clicks on a particular
> button, I need the current page to be replaced with a different page
> under the same application root, which runs the same widgets, plus
> different ones. I do not have the entire application as one monolithic
> script in one page, but have instead broken it up into three pages --
> one for item browsing, one for adding, and one for update.
>
> Once the user has added an item on the add page, and click Save, I
> need them to return to the browse page. How do I accomplish this
> simple operation in GWT? I have looked everywhere! If it is not
> possible to do this, I will be forced to abandon GWT completely ...

Window.Location.assign("add.html") ?

> I
> cannot imagine that is impossible, since Google Mail also does this.
> Not everything is in the same page. Google Contacts, for instance,
> fetches a different page than the mail page.

GMail uses an iframe to load contacts. In GWT, you'd use a Frame or
NamedFrame widget; but keep in mind that cross-frame scripting
(accessing window.top, window.parent and the like) needs JSNI.
--~--~---------~--~----~------------~-------~--~----~
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