Recently, I''ve decided to include the excellent mootools in my projects. So, out prototype and scriptaculous, in mootools. Everything went well up to the point i had to add some ajax into the story... I am ok not to use remote_ helpers, but it seems nothing comes back... As a newbie in this whole rails environment, i think i''m getting into something much bigger than my scope of knowledge. so basically, i have in js a request that looks like this: new Ajax(''/test'', { method:''get'', data:''abc123'', update:''debug'', onComplete:''function(){alert("complete")} } and in my controller: def test render "you passed #{params[:data]} end but absolutely nothing is passed to my debug, and no alert is being triggered. please.... help :( --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nguma Monene wrote:> please.... help :(If you use Firefox, I would recommend installing the Firebug extension: http://www.getfirebug.com/ It''s a great tool for debugging your js as well as it lets you see your ajax transactions to tell you were stuff isn''t working quite right. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I got to use firebug, which is great :) thks, now my ajax request goes thorugh i run into another problem of returning a response without the use of ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods does anyone have an example of a typical response that wouldn''t use page.insert_thml or page.replace_html ?? On Jun 17, 5:20 pm, Dave Coleman <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> NgumaMonene wrote: > > please.... help :( > > If you use Firefox, I would recommend installing the Firebug extension: > > http://www.getfirebug.com/ > > It''s a great tool for debugging your js as well as it lets you see your > ajax transactions to tell you were stuff isn''t working quite right. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I too came across same problem. I am using mootools with rails. Can you help in solving how to handle ajax response and request. Nguma Monene wrote:> I got to use firebug, which is great :) thks, > now my ajax request goes thorugh i run into another problem of > returning a response without the use of > ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods > > does anyone have an example of a typical response that wouldn''t use > page.insert_thml or page.replace_html ?? > > > > > On Jun 17, 5:20 pm, Dave Coleman <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- Posted via http://www.ruby-forum.com/.
Nguma Monene wrote:> Recently, I''ve decided to include the excellent mootools in my > projects. > So, out prototype and scriptaculous, in mootools. >Just a quick question: why? I''ve used both Prototype and Mootools, and it seems like Mootools is just a half-baked attempt at things that Prototype already does well. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.