I've never had any problem with
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
getPhpUrl() + PHP_PING_FILENAME);
builder.setHeader("Content-Type",
"application/x-www-form-urlencoded");
builder.sendRequest("id=" + id, new DummyCallback());
But if your function really does call itself every second as you say, you'll
run out of stack space before too long.
Ian
http://examples.roughian.com
2009/9/15 Bob Rozelle <[email protected]>
>
> I'm curious, what is the use case is that requires a heartbeat from
> the client to the server?
>
> On Sep 14, 8:51 am, Ittai <[email protected]> wrote:
> > I actually did what you suggested but oddly enough it did not work.
> > I still had to add a dummy data to fool the IE into thinking it's a
> > different URL.
> > Anyone has any ideas? Because I would sure love to get rid of this
> > ugly hack
> >
> > TIA
> > Ittai
> >
> > On Sep 2, 12:17 am, Thomas Broyer <[email protected]> wrote:
> >
> > > On 1 sep, 18:06, Adligo <[email protected]> wrote:
> >
> > > > Hi All,
> >
> > > > This is my quick hack that fixes that issue;
> > > >http://yourserver/yourPath?yourCgiParams=yourValues&request=1
> > > >http://yourserver/yourPath?yourCgiParams=yourValues&request=2
> > > >http://yourserver/yourPath?yourCgiParams=yourValues&request=3
> > > > exc
> >
> > > > Also note this can be applied to html and property files (or any
> > > > files)
> http://yourserver/funky.html&request=1http://yourserver/drummer.prope...
> >
> > > > I have been using a static int counter to accomplish this trick.
> > > > I think GWT should add some caching options to its http api, because
> > > > this is quite hoaky.
> >
> > > Something like the following? ;-)
> >
> > > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> > > "yourPath?yourCgiParams=yourValues");
> > > builder.setHeader("Cache-Control", "no-cache");
> > > ...
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---