GWT URL Parameters

842 views
Skip to first unread message

KevMo

unread,
Jul 15, 2009, 2:00:32 PM7/15/09
to Google Web Toolkit
I know I can get URL parameters by using Window.Location.getParameter
(), but how does one programatically set the url parameter?

Max

unread,
Jul 16, 2009, 12:24:07 AM7/16/09
to Google Web Toolkit
Hi KevMo,

I think you can find this information in this post:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/bcc33cc90e1064d5/3f9ff71f532b4cd1?#3f9ff71f532b4cd1

Also you can search for "URL Parameters" or "Parameters" in this group
so find more posts.

Regards,

Max

On Jul 15, 11:00 am, KevMo <kevinps...@gmail.com> wrote:
> I know I can getURLparametersby using Window.Location.getParameter

KevMo

unread,
Jul 16, 2009, 11:46:11 AM7/16/09
to Google Web Toolkit
Thanks Max,

I did find that post earlier, however since there is a built in way of
getting URL parameters I thought there would also be a built in way of
setting them. That post suggests using the history to set the
parameters, but then I would need to make my own functions to parse
the history token for the parameters.

Cheers,
Kevin

On Jul 15, 9:24 pm, Max <maks...@gmail.com> wrote:
> Hi KevMo,
>
> I think you can find this information in this post:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

twdarkflame

unread,
Jul 18, 2009, 8:32:56 AM7/18/09
to Google Web Toolkit
You cant actualy change the url parameters like you can the history,
because changing them would refresh the page.
google.com#?blah=blah would be a history token that just pretends to
be a normal parameter. (and Window.Location.getParameter wouldnt work
for it).
This can be changed without a page refresh

Any change before a #, however (such as google.com?blah=blah) would
cause a page refresh, and thus cant be done with a continuously
running app.

This cause's much announce in combination with the fact severs cant
access "#", as it makes it very hard to give your users url's which
both always link to the same data, and work for clients without
javascript. (such as google bots)
Reply all
Reply to author
Forward
0 new messages