Displaying 20 results from an estimated 40000 matches similar to: "disable link_to_remote tag"
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
2006 Feb 14
3
Grandstream hold one way audio -URGENT
Hi all,
At our customer site i've installed one asterisk server with 20
Grandstream GXP2000's. Firmware 1.0.1.9. When someone dials the
customer, the receptionist picks up, and does an attended transfer (the
'grandstream way') to a collegue. Most of the times this goes ok, but
sometimes, when the receptionist puts the call on hold, and tries te
reconnect to the caller there's
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 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 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
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]" />
...
<%=
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
2006 Jun 07
2
How to send post data with link_to_remote?
Hi,
I''m trying to send a post body with my link_to_remote call.
Prototype supports the ''postBody'' option, but I can''t seem to get
link_to_remote to set that.
Here''s what I''m trying:
link_to_remote ''move up'',
:url => { :controller => ''upload'', :action => ''position_ajax'', :id
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the
content, and the border size doubles. Example:
<div id="test" style="border:solid; border-width:5px">
<%= link_to_remote("Test", :update => "test", :url => { :controller =>
"tester", :action => "test" }) %>
</div>
Even stranger, if I
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 Aug 17
2
link_to_remote question
I''m using link_to_remote to call a method that deletes an item
<%= link_to_remote " [delete]", :url => { :controller => ''user_admin'',
:action => ''employee_type_delete'',
:id => employee_type.id
}
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,
2010 Jul 13
1
will_paginate destroys link_to_remote?!
Hello,
I''ve got a list in a view and each of element of it has a link_to_remote
and everything worked like a charm. Now I added AJAX pagination and the
link_to_remote doesn''t work anymore.
This is the partial of the list:
<% for character in characters %>
<%= character.name %>
<%= link_to_remote t(''.add''), :url =>
2009 Jul 11
6
conditional link_to_remote not re-rendering
I have an int, ''floorfrozen,'' in my table, ''channels'' that can take a
value of 0 or 1.
When I render a page, an image in a link_to_remote is called
differently depending what the value of channel.floorfrozen is, in a
partial, as follows:
<% if @channel.floorfrozen %>
<%= link_to_remote image_tag("/images/icecube.gif"), {:url =>
2006 Jun 01
1
link_to_remote renders Ajax.Updater, sometimes Ajax.Request
I''m new to Rails, but am really enjoying working with it.
But i just hit a brick wall...
I have two link_to_remote tags in two seperate _whatever.rhtml files.
The targets of the updates are in edit.rhtml which does a render
:partial to include the links. here''s some code:
<%= link_to_remote ''Destroy'',
:update => "libtable",
2006 Mar 13
2
How to apply an effect to a link_to_remote :update without using evaluate_remote_response?
Hey all,
I''ve been trying to apply a slide-down (or highlight) effect to a "New
card" link on my application. Because the item is *new* and I''m simply
updating it at the top, I can''t know what the div id is before I make
the request. link_to_remote :complete => visual_effect(:slidedown)
doesn''t do what I want it to do. My current solution is:
2006 Jun 30
1
getting form values using link_to_remote
I have this as part of an .rhtml page:
<%= javascript_include_tag "prototype" %>
<%= form_tag :controller => ''reallist'', :action => ''addnewuser''%>
email:<br />
<%= text_field_tag :email, nil, :size => ''14'' %><br />
<div id=''nameStatus''>
</div>
<%=
2006 May 23
0
html "class" attribute for "link_to_remote"
Hi,
now this should be easy, but for some reason I was not able to generate
a link with a "class" attribute using "link_to_remote".
I tried several different ways, including the one that worked for
"link_to", but so far no luck.
I have to admit that I am not 100% sure how to read the rDoc
documentation. If it says:
link_to_remote(name, options = {},
2006 Apr 12
1
link_to_remote with form values?
Hi,
I need a way to read a form field and pass its contents as a parameter
to a link_to_remote call.
So let''s say I have a textarea input:
<%= text_area ''course'', ''topics'', :rows => 6, :cols => 60 %>
and later a link_to_remote:
<%= link_to_remote("Hide",
{ :update => ''my div'',
2006 Mar 04
0
lesson learned: careful with :update in link_to_remote
A link_to_remote call was generating Ajax.Request instead of
Ajax.Updater. I couldn''t for the life of me understand why. There was
some extra indirection because I used there a helper of mine that
receives an image and generates a link_to_remote with image_tag and
some stuff for image rollover.
After browsing the sources in the API website (hey, that "[ show
source ]"