If you're set on doing the ajax through jQuery try adding this to your
page and watch the console logs in firebug (obviously replacing 'posts
and 'index' with the route to the model and action you're polling):
// poll the posts index every 3000 milliseconds logging the response
to the console.
set
On May 22, 2:27 am, Ralph Shnelvar wrote:
> Bill Walton wrote:
> Ok ...
>
> I need to do polling of the server. The polling will happen out of
> jQuery ... so there is no UI trigger event as such.
>
> Once I get my results back, I'll use jQuery to manipulate the DOM to
> pupulate certain field
Hi Ralph,
On Fri, May 21, 2010 at 8:27 PM, Ralph Shnelvar wrote:
>
>
> I need to do polling of the server.
Then use the periodically_call_remote helper
> The polling will happen out of jQuery ...
Doesn't really matter which library you're using. The Rails helper will
generate the call you
Bill Walton wrote:
> Hi Ralph,
>
> Each helper will generate the appropriate Ajax request, using Prototype
> as a
> default. Rails does the coding for you. Check back if you have
> questions
> specific to one of those once you decide which is most appropriate for
> your
> situation.
Ok ...
Ralph Shnelvar wrote:
> Is there a simple example of me issuing an XMLHttpRequest and a rails
> app responding ... without all the Prototype overhead.
What are you considering overhead? XHR *is* fundamentally a JavaScript
function...
>
> All I want to do is send an XHR and have the Rails app de
5 matches
Mail list logo