I guess I could kind of cheat and stick it all in the History call?:

    History.newItem("chat?id=1234&color=red");

this will kind of make sense to end users, and I can just parse the
history item myself for all the parameters - anything horribly wrong
with this, or any easier way?

Thanks

On Jun 26, 2:56 pm, markww <[email protected]> wrote:
> Hi,
>
> I'm not sure how we use history and parameters in GWT. For example,
> when my user wants to go to a login page, I do this:
>
>    History.newItem("login");
>
> which makes the url:
>
>    www.mysite.com/myproject.html#login
>
> that's ok, if they copy and paste that url to another browser
> instance, my app knows to automatically show the login "page".
>
> But what if we want to add some parameters, for instance, if we wanted
> to create a chat room page, something like:
>
>    History.newItem("chat");
>    URL.addParameter("id", "1234");
>    URL.addParameter("color", "red");
>
> to make something like:
>
>    www.mysite.com/myproject.html#chat?id=1234&color=red
>
> I'm not sure how we can do that in GWT, but basically it would let the
> user copy and paste that url into another instance, and my app would
> be able to know to load page chat, with parameters 1234 and red.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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