similar to: Problems with jRails and ajax helpers

Displaying 20 results from an estimated 4000 matches similar to: "Problems with jRails and ajax helpers"

2008 Jul 17
2
Problem with link_to_remote, RJS and jRails
Hi, everyone, I''m trying to update the content of a div using link_to_remote and RJS template. Everything works fine if I use the default Prototype/Scriptaculous libraries, but I want to use jRails ''coz other parts of my application use a lot of jQuery. Here are the steps I done: 1. inside StatesController.rb I defined the following action: def update_view # do nothing just
2009 Apr 08
0
authenticity problem with jrails ajax
I''m using jrails and I found when I use the authenticity_token in certain javascript calls, that the url works differently in that the paramters in the :with clause get dropped if they are in a json type syntax. Below is an example of a remote_function() call from JS that used to work fine without authenticity. When I enabled authenticity it adds the authenticity token automatically, but
2009 Sep 10
1
undefined method `protect_against_forgery?'
When I use plugin ''railstree'' (http://www.hashcode.eti.br/?p=91) as following code: node = Node.new :label => menu_item.name, :link_to_remote => { :base => self, :update => "container", :url => {
2007 Nov 15
1
jRails plugin: jQuery on Rails
Hey All, I just built a new plugin that replaces most of the default functionality for Prototype/scriptaculous with jQuery. I still have some work to do completing the rest of the visual effects and writing some plugins for autocomplete and in-place editing but this release is pretty solid. It includes support for basic AJAX calls (form_to_remote, link_to_remote), RJS, observers (observe_form,
2009 Jun 23
7
can't get remote_function working on rails 2.3.2
I''ve tried moving the code around in different ways, but so far I haven''t gotten remote_function to work for me (I''m using Rails 2.3.2 on my Mac). I want to make an AJAX call when I double-click a word on my page, and the Javascript function is being called when the ondblclick event is fired, but nothing happens when it gets to my the "new Ajax.Request" part
2008 Dec 15
1
remote_function in IE with select input onchange
Here is the code: http://pastie.org/339967 Generated HTML: http://pastie.org/339969 This works great in Gecko and Webkit based browsers, but IE throws an error: "Object doesn''t support this property or method". Any clues? Thanks, Nik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2009 Jun 03
0
TINY MCE Jrails media upload
Hi Can anybody give me idea to do media upload in rails using tiny_mce and jrails ? Thanks ! -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2011 Aug 02
0
jrails plug in and rails 3 compatibility
Hi people Today I just want to make a simple question. Is Jrails 0.4.0 compatible with rails 3? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Dec 01
12
Rails 2.3.5 - Cannot install plugin
I''m always get the message "Plugin not found: ["git://github.com/ aaronchi/jrails.git"]" when trying to install a rails plugin, even for SVN or GIT. After google search, some people suggest that replace "git://" with "http://" and add "/" at the end of the url. I tried and it still does not work. I used the ruby 1.9.1-p243 and rails
2010 Mar 09
9
Ajax-submit form on "check box onclick ": why this error?
Hi there, I need to have a checkbox which ajax-submits a form. The following code throws an error "index 112009 out of string". What''s wrong here? ============================================== <% form_remote_tag :url => { whatever_url } do -%> <%= check_box_tag ''whatever'', nil, whatever, { :onclick =>
2011 Jul 27
20
Rails, jquery and Ajax
How do I make an ajax call and then update a div with a partial? I''ve tried this but it''s not working. Comment is created but the partial is not loaded. //view <a href="#" id="testlink">Testlink</a> <div id="commentlist"> </div> //controller def new @comment = Comment.new @comment.save
2007 Sep 26
3
Ajax without submti button?
I have a drop down list, how can I set it up to send request when selecting an option rather than pressing submit button after selection? And how can I save values of checkboxex/radio buttons without submit? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable item and then detect the coordinates where it is dropped. So my first approach was to just use the draggable_element with :revert => false, like so: <%= draggable_element "my_element", :revert => false %> That works great and lets me drag stuff all over the place. In the scriptaculous
2006 Jan 08
2
RoR AJAX select box update?
Hi, I want to update a select box depending on another selected option thru ajax. Heres how I do it # _form.rhtml <select id="budget_coordinator_id" name="budget[coordinator_id]" onchange="<%= remote_function(:update => "budget_project_number", :url => { :action => :get_projects }) %>"> <%=
2007 Mar 07
4
Ajax and IE6 - is there some sort of "trick"?
Hi, I''ve got some Ajax stuff that shows more or less of a complex form based on a radio button selection. A "radio_handler" controller action is the action for a form handler. Some seemingly simple "replace_html" fires as a result of different radio buttons being chosen (which should then show more or less of the form). This all works just great on Mac Safari and
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I''m seeing. Hopefully it''s a very simple fix, and I simply can''t see the forest through all the trees! I am attempting to create 2 related drop-down lists in the same form_for, both using
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>
2008 Jan 14
0
Ajax Problem
Hi, I''m using Jquery on jrails. I used ajax to submit for one textbox. I want to put an image when ajax is calling. But i''m getting problem here. Please solve my problem.Here is the part of code <label>Prouct Category</label><br/> <%#= collection_select("product", "type_1" , product_types,
2009 Apr 02
1
"can't modify frozen string" error in Ajax.Updater
I''ve just deployed my RoR app to a host that uses dispatch.cgi instead of Mongrel and came across this issue when using AJAX. The same issue has been highlighted a year ago, (on this list) <http:// groups.google.com/group/rubyonrails-talk/browse_thread/thread/ 872fed1ff554c9a4> and (on Rails Trac) <http://dev.rubyonrails.org/ ticket/10365>. In short, when some browsers enact
2010 Jul 09
2
Template is missing.... but it is there!
Hello friends! I have an application to list different kinds of institution names. So I have one table "instits" for the institutions and another table "nome_instits" for their names. For test, I put two rows inside "instits" and three names for the first institution and two names for the last. Then I created this controller: class ServInstitController <