similar to: action in link_to_remote

Displaying 20 results from an estimated 20000 matches similar to: "action in link_to_remote"

2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value of a javascript variable as an argument. Something like that: link_to_remote "my_link", :update => ''my_div'', :url => { :action => "my_action", :var => ''my_var'' } Basically,
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it generates. My code is as follows: <%= link_to_remote "Show Full Info", :update => "fullcontact" + reparray.last.to_s, :url => "/cm/full_contact/" + reparray.last.to_s, :classname => "contactlink" %> Which produces this HTML: <a href="#"
2006 Feb 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here. I''ve got a link to remote that I believe should be working, but doesn''t seem in fact to do *anything*. I''m looking at the webrick log, since the Book says I should be seeing some hot POST action in there, but there''s literally no change when I click on the JS link. From looking at the source that''s
2006 Jan 08
0
link_to_remote(image_url url_for_file_column(product, "image
I apologise for bad formatting. I don''t know how to make it nice in an email How do you nest image_url tags into link_to_remote tags. The following creates the error:wrong number of arguments (3 for 2) <%= link_to_remote(image_tag url_for_file_column(product, "image_url"), { "class" => "small_product",
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
How should I define the :onsuccess option in my - link_to_remote - tag, to execute a Js function I wrote : :success => "toggleButton(this, /db_bfilter/i);" ''this'' is the current element defined in my view : <span id="db_bfilter0" class="depressed"><%= filter_link_helper "This week" %></span> <span
2007 Mar 09
0
link_to_remote with onmouseover event
Anyone have a better method for having the onmouseover event (or any other mouse event) instead of onclick when using link_to_remote: This is what I did, but I''d i have to create one for every mouse event, can''t figure out how to call a mouse event via an argument . anyone else run into this problem. Thanks def link_to_remote_mover(name, options = {}, html_options
2006 Mar 29
0
I can''t get to work css class with link_to_remote function
What am I doing wrong? This is the code <%= link_to_remote "Mi Cuenta", :update => "MainSpace", :url => {:controller => "account", :action => "login"}, :class => "menu_link_superior" %> This is the result <a href="#" onclick="new Ajax.Updater(''MainSpace'',
2006 Aug 03
0
link_to_remote() question from a newbie.
Hello, I am trying to utilize link_to_remote() in the following manner: <%= link_to_remote(exchange.name, :update => ''mydiv'', :url => { :controller => ''attributes'', :action => :list_user_attributes, :class_id => class.id, :user_id => user.id } ) %> And
2006 Mar 04
3
:class in link_to_remote?
Is there a way to set the class of a link in link_to_remote? I tried adding :class => "this_damn_class" after the :url hash and it didn''t work. I went ahead and did it manually using remote_function, i.e. <a class="this_damn_class" href="#" onclick="<%= remote_function ..., :url => {...} %>">My Link</a> -- Posted via
2006 Jan 11
0
AJAX: link_to_remote problem
I use: <%= link_to_remote("Update", :update => ''mydiv'', :url => { :action => :create, :host => ''rails'' }) %> which generates the following: <a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'', {asynchronous:true, evalScripts:true}); return
2006 Aug 04
3
<img onclick> vs link_to_remote()
In one of my view , I have an image the user need to click to close a <div>selections</div> added by an Ajax call. if I use : <img src ="/images/icon_closeitem.gif", size="16*16", border="0",alt="Close Selection", title="Close", onclick="<%= remote_function(:url => { :controller => ''property'',
2006 Apr 30
0
Using a DIV or SPAN for a content_tag (link_to_remote)
I was wondering if there was an easy way to over ride the <a> tag that is used as the content_tag() value when using link_to_remote(), perhaps using a SPAN or DIV. I see follow the chain in the source code and I guess I could write my own helper, but I was wondering if there was a way to do this already? I know already that SPAN''s and DIV''s are not supported
2006 May 09
2
name and class href attribute in a link_to_remote
I have a link to remote and I''m trying to get the name="" and the class="" attribute in the href so the link will come out like this: <a href="action" onclick"ajax(action)" name="Title Of Link" class="someclass"> So far the link looks like this: <% for course in @courses %> <%= link_to_remote
2006 Mar 01
0
RE: manipulate <td>''s and their content by grabbingtheir classNames
Or... var myTDs = new Array(); $A($("main").childNodes).each(function(tr) { $A(tr.childNodes).each(function(td) { myTDs.push(td); }); }); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of troels knak-nielsen Sent: Wednesday, March
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello, I have a simple link_to_remote that refresh a div. I just want to know if it''s possible to interrupt the div''s refresh inside :action to perform a complete reload of the page, outside of the div Actually, I havea a new page, but loaded inside the ":update" div. Someone have an idea please ? the rhtml: **** link_to_remote "yeah" , :update =>
2006 Jul 25
1
Feeling silly
I don''t know why, but I am drawing a complete blank on something that should be easy. I''ve been searching, perhaps using wrong terms, and still not coming up with anything. Here''s what I''m trying to do: <div class="button" onMouseOver=''this.className="button_hover"''; onMouseOut
2006 Feb 22
2
''this.initialize'' is null or not an object
Hi, working on the accordion widget and it''s actually working nice (doesn''t seem to be jumpy) now but I am receiving a javascript error in IE 6. Does anybody have any ideas why it is happening? Thanks <script language="javascript"> sbr_stretch(el) { thisBodyId = el.parentNode.id + "_body"; thisBody = $(thisBodyId); if
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
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(
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