[Rails] Re: XMLHttpRequest and Rails

2010-05-30 Thread matt kauffman
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.

[Rails] Re: XMLHttpRequest and Rails

2010-05-21 Thread Marnen Laibow-Koser
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

[Rails] Re: XMLHttpRequest and Rails

2010-05-21 Thread Ralph Shnelvar
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 ... I need

Re: [Rails] Re: XMLHttpRequest and Rails

2010-05-21 Thread Bill Walton
Hi Ralph, On Fri, May 21, 2010 at 8:27 PM, Ralph Shnelvar li...@ruby-forum.comwrote: 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

[Rails] Re: XMLHttpRequest and Rails

2010-05-21 Thread Frederick Cheung
On May 22, 2:27 am, Ralph Shnelvar li...@ruby-forum.com 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