similar to: passing object ids with link_to_remote

Displaying 20 results from an estimated 80000 matches similar to: "passing object ids with link_to_remote"

2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1. Having this page: <h4>Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time =>
2008 Jul 16
2
params for link_to_remote
Hello :-), i want to use ''link_to_remote'' to create a simple form on the website. The form is a simple editor to post a comment to an article. I need to know the article_id in the new view/controller. With ''render'' everything works fine, but ''link_to_remote'' doesnt work with :params :- ( here is my code of the article view: <div
2006 Dec 11
1
Using link_to_remote to add a record
I am trying to use link_to_remote to simply add a record to a database table called "ratings". I''ve seen some examples of this being done but can''t seem to get it to work. Any ideas about what I''m doing wrong? Here is what I have in my view: <%= link_to_remote( "1", {:url => { :controller => "ratings", :action =>
2006 Aug 24
1
link_to_remote parameters - help
I''m trying to show a preview of the comments, and I''m saving the comments through AJAX. So, I thought that I should be able to mimic the "comments" action for the "comments_preview" action very easily. So far, this isn''t the case. I have a link_to_remote tag inside of the form tag, and I don''t know how to send the parameters that are
2007 May 10
2
link_to_remote fix, should this be added to edge rails?
After looking at the link_to_remote tag for the first time, I found it broke when javascript was disabled. Below is one possible solution I found and would like to suggest that this idea is promoted into rails. # # provide fix for link_to_remote tag when javascript is not enabled def link_to_remote_fix(text, options) link_to_remote text, options, :href => url_for(
2007 May 15
1
link_to_remote with :confirm...need syntax help
What is the syntax to use :confirm with link_to_remote? This doesn''t work, I''ve tried a few permutations, with no success: <%= link_to_remote( "X", :update => ''address_list'', :url => { :controller => ''addresses'', :action => ''destroy'', :id => address },
2006 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%=
2008 Feb 11
1
Rich Text Editor and link_to_remote
Hi How can I get link_to_remote to call a new page and respect the javascript within that page. I do have an edit page for datarecords, that have a textarea which is enhanced with the YUI Rich Text Editor. If I call that edit page through link_to_remote, the editor isn''t displayed. If i call it without the AJAX, it works fine. What can I do?
2008 Apr 21
1
link_to_remote / url path question
I have this helper / link_to_remote link I am trying to switch from destroy/delete to a separate method/action. Here is the original code. link_to_remote image_tag(''delete.png'', :class => ''png'', :width=>''12'', :height=>''12''), :url => profile_message_path(@p, message), :method => :delete Current path that
2008 Feb 01
4
Help with link_to_remote
Hi!. Is there a way to call to another controller with link_to_remote? Something like this: <%= link_to_remote "Tests", { :controller => "tests", :action => "tester" } %> Salu2... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2008 Jul 24
1
How to add link_to_remote element with RJS?
Hello, after executing an action, I add an <li> element to an existing list using a RJS template: page.insert_html :bottom, :contributors, "<li id=''contributor.#{@contributor.id}''>#{@contributor.user.name}</li>" but I need to add an image with a link_to_remote as I have in a partial page: <li id="contributor.<%= contributor.id
2008 Jul 25
0
doing Selenium tests and :confirm inside a link_to_remote does not work
Hello there. I have a problem doing Selenium tests. When I try to test my delete method doesn''t prompt me the respective alert which otherwise would appears before run the destroy method on the controller. Without Selenium the application prompt me as the regular way but within Selenium things go badly. Here is a part of my view: <%=link_to_remote
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
2007 Nov 20
4
link_to_remote style
I am trying to use link_to_remote to update a div tag with some content. This part works fine. The thing I am having an issue with is that I am trying to format this link with a ''class'' tag and it is being ignored. Can anyone shed some light on this? I have tried brackets in different places with different options and tried other variations with no luck. I am guessing my
2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi anybody plz help me how can i use link_to_remote with in form_for.. i tried but no luck... if i use form_tag i can able to use link_to_remote and made ajax call.but i need to use form_for ....can anyone help me how can i do with this.Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2008 Jul 07
1
link_to_remote multiple :with =>
i have a link to remote and i need to pass two values provided by select boxes to it, a language, and a page count (hits per page to be paginated) how do i get the code below to send both arguments?? <%= link_to_remote "#{element}", :update => "a_z_replace", :loading => "Element.show(''a_z_indicator'')", :loaded =>
2008 Mar 20
2
link_to_remote confirm dialog title
Is there any way to set the confirmation dialog title when using link_to_remote with the :confirm option? In Firefox the dialog works fine but the title is: "The page at http://localhost:3000 says:" It would be nice if I could set that to something meaningful. Any information is appreciated, Rick -- Posted via http://www.ruby-forum.com/.
2008 Feb 01
1
problems with link_to_remote and send_file
Hi everyone, I working on an app that at some point generates an xls report(charts, summary lines, etc) and sends it to the user. If i use link_to everything works fine; however when change to link_to_remote so i can make an ajax call it doesn;t seam to work ( i do not get the save/open dialog box) def exp_to_excel_2003 @filepath = "#{RAILS_ROOT}/public/files/Metrics Report.xls"
2008 May 14
1
link_to_remote with embedded image_tag
Hi- I want to generate a link with an image embedded between the <a> and </ a> so when the user clicks on the image the ajax call fires. I can''t find any documentation on how to do this with link_to_remote. Is this possible? I''d like to generate something like: <a href = ...> <img src = .../></a> Thanks, Dino
2007 Sep 26
1
Is there a Rails helper similar to link_to_remote but for a form check box instead of a link?
I''m working on a couple of user input forms -- one data entry, one search -- where I''d like to start off by displaying only top-level categories. Then, if a user checked one of the top-level categories, all the child categories would show for that top-level one. (Displaying all the child categories for every parent would be a bit overwhelming, it''s a large list.) I can