Re: Repeating http requests
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 etai...@gmail.com 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 t.bro...@gmail.com wrote: On 1 sep, 18:06, Adligo sc...@adligo.com wrote: Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files)http://yourserver/funky.htmlrequest=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 google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Repeating http requests
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 broze...@eatlocalfood.com 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 etai...@gmail.com 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 t.bro...@gmail.com wrote: On 1 sep, 18:06, Adligo sc...@adligo.com wrote: Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files) http://yourserver/funky.htmlrequest=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 google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Repeating http requests
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 t.bro...@gmail.com wrote: On 1 sep, 18:06, Adligo sc...@adligo.com wrote: Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files)http://yourserver/funky.htmlrequest=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 google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Repeating http requests
Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files) http://yourserver/funky.htmlrequest=1 http://yourserver/drummer.propertiesrequest=2 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. Cheers, Scott On Aug 31, 3:03 pm, Jamie jamiesharbor-sou...@yahoo.com wrote: You might have a bit of debugging in your future... Is there anything different about the last request? Check this with eg., TamperData, FireBug console, or server logging. Is it handled properly? Perhaps you have some sort of referencing issue within the handler, that is not allowing all the previous callbacks to be freed? Jamie. --- Search for analog and digital television broadcast antennas in your area:http://www.antennamap.com/ --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Repeating http requests
On 1 sep, 18:06, Adligo sc...@adligo.com wrote: Hi All, This is my quick hack that fixes that issue; http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2 http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3 exc Also note this can be applied to html and property files (or any files)http://yourserver/funky.htmlrequest=1http://yourserver/drummer.propertiesrequest=2 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 google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Repeating http requests
Hey all Well I have a function that sends an http request this function sends an http request waits 1 second with a timer and recalls itself as long as my application is open this will continue for hours (suppose to at least), after a while this function just stops working..while other http requests that are sent for example when I press a button on my application still work. Is it because javascript just terminates a function that calls itself so many times? or is it something else? what is the alternative solution? thank you --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Repeating http requests
You might have a bit of debugging in your future... Is there anything different about the last request? Check this with eg., TamperData, FireBug console, or server logging. Is it handled properly? Perhaps you have some sort of referencing issue within the handler, that is not allowing all the previous callbacks to be freed? Jamie. --- Search for analog and digital television broadcast antennas in your area: http://www.antennamap.com/ --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---