Displaying 20 results from an estimated 9000 matches similar to: "Converting rails 2 to 3 remote_function error"
2006 Jul 10
2
inline javascript in partials
When rendering the following partial, the <script> block isn''t getting
rendered at all. Does rails strip this out or is it some limitation of
the browser?
<% remote_options = {
:update => update,
:with => "Form.serialize(''#{form}'')",
:url => { :action => "process_multiple" }
} %>
<% do_before ||= nil %>
<% click_fn =
2006 Sep 10
2
Issue with radiobutton and remote_function in IE.
Hi there!
I did implemented the radio button with remote_function to update some
div via RJS.
It works perfect with FireFox, but behaves weird with IE. When I click
the radio button
it loads data (I see the indicator showing) but not updates the div with
info until I click
left mouse button anywhere.
It''s weird =(
Here is the snippet from .rhtml code
<td>
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'',
2008 May 10
0
can javascript handle 422 response
I''m toggling a check box via ajax using:
application_helper.rb: ...............................................................
def toggle_value(object)
remote_function(:url => url_for(object),
:method => :put,
:before => "Element.show(''spinner-
#{object.id}'')",
:complete
2006 Sep 30
1
possible bug: edge rails, nested resources and images
Im trying to show images in my restful application and have finally
found what appears to be the source of the problem.
When i have the products resource nested in categories as showen below
in the first routes file i can see the categories index (/categories).
When i add the images to the products resource map as shown in routes 2
i get the error:
image_url failed to generate from
2010 Aug 18
2
[Rails 3] remote_function ?
Is the remote_function still valid in Rails 3 as it seems many of the
Prototype helpers have been replaced ? (link_to_remote, ...)
where can I find any link on it ? not in the standard doc I guess ..
thanks for you feedback
--
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
2011 May 25
0
Issues implementing jquery-form plugin for displaying image via an ajax call in my rails poc
Hello all,
I am trying to implement a POC wherein I can post a message + image and
get the same working via AJAX to display them both for each new entry
without the page reloading.
I am using a config of Ruby 1.8.7 and Rails 2.0.2 for project specific
purposes.. I am also using a pretty old paperclip commit from github for
this....I had to suit my proj config requirements mentioned previously..
2005 Nov 25
0
Using link_to_remote/remote_function outside of a Controller
Hello!
I have a problem that is quite anoying!
In side my Controller it is no problem to use the
link_to_remote/remote_function function to produce html stuff to include
in my .rhtml file. BUT if I want to do this in another object, for
eample if I inside my controller (init_test) want to do like this:
my_dropdown->get_html
in which I want to perform the link_to_remote/remote_function
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
Hi
WOW! Is Rails 3 another interesting learning curve. Just when I think
I have a general working knowledge of Rails 2 ... things change.
I''m trying to replicate the following in Rails 3:
<%= link_to_remote image_tag("creditcard.png", :border => 0), :url =>
{:action => :make_payment, :type => "Credit", :id =>
@appt.id },
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 Dec 04
0
lint_to_remote for image
I have some simple code so that when you click on a thumbnail,
it''s supposed to display the image enlarged in the enlargement area.
The page looks right, but when you click on a thumb nothing happens, it
just moves up the page. Why is the href=# happening ? The generated
html comes after the sample rhtml
<%= image_tag @enlargement, :width => "279", :height =>
2011 Apr 12
0
Suppress ActionController::RoutingError in logs
My rails log get chock a block with things like
<<<<<<<<<<<<
ActionController::RoutingError (No route matches "/admin/Y-
ivrrecording.php" with {:method=>:get}):
...
ActionController::RoutingError (No route matches "/manager/html" with
{:method=>:get}):
..
ActionController::RoutingError (No route matches "/webdav/test" with
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 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys,
I was wondering if you are able to have a link_to_remote, having an
image_tag and the link_to_remote has a mouseover event that updates a
div. Does the image_tag need the mouseover event? I currently have:
<%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update
=> "big_pic", :onmouseover => {:action => :color_change, :id =>
@p_image.id})%>
2009 Aug 18
1
[PATCH server] Add of a button destroy for disabled hosts.
Add of a button destroy for disabled hosts.
This button behave in a similar way than the delete button of a VM.
Signed-off-by: Sylvain Desbureaux
<sylvain.desbureaux at orange-ftgroup.com>
---
src/app/controllers/host_controller.rb | 5 +++++
src/app/services/host_service.rb | 15 +++++++++++++++
src/app/views/host/show.rhtml | 17 +++++++++++++++++
3 files changed,
2006 Jul 30
2
how to use remote_function :with option?
I''d like to send some simple info to my controller using the :with
option for remote_function
remote_function :url => url_for(:action => ''my_action''), :with =>
???????
But I don''t know anything about JavaScript. How can I use the :with
option to send a simple parameter to the controller? I''ve tried a few
things, but I haven''t
2006 Jun 07
0
javascript that remote_function creates
I''m tring to use remote_function instead of writing all the javascript
out, but am having difficulties..
I have this code in a layout:
<body onload="<%= remote_function(:update => ''show_active'', :url =>
{:action => ''show_active_bugs''},
:complete => visual_effect(:blind_down, ''show_active'')) %>">
2006 Jun 12
0
Passing parameters to ''remote_function''
Hi,
I am trying to use the ''remote_function'' helper method from the
PrototypeHelper class on a the onblur event of a text_field for filling
a form with data via AJAX.
How can I get the value of the text_field for making a query to the
database in the controller action?
<%= text_field("item", "code" ,
:onblur => remote_function(:update =>
2006 May 10
0
Passing Muliple Parameters with remote_function
<select name="media" id="media" onchange="<%= remote_function(
:url => { :action => :show_performer_categories,
:rate_group_id => @rate_group },
:with => "''media_id=''+this.value''"
) %>">
I''m guessing that''s wrong since WebRick does nothign when I
2006 Mar 23
1
Rails AJAX question, calling remote_function in a loop
I think I may be missing something here. I have a collection of people
I want to run through. For each person I want to use AJAX to make a
calculation and update the page with the results. First I tried to do
this with just links, which works fine. It looks like this
<% @eligible_players.each do |player| %>
<tr>
<td>
<%= link_to_remote( player.player_name,