Displaying 20 results from an estimated 50000 matches similar to: "Ajax posting?"
2006 Jun 11
4
remote_function posting?
Hi, I''ve noticed that my remote_function calls are resulting in POST
requests. As a result, my routes do not apply since it does not generate a
url based on the parameters, but simply posts to the raw url with post data.
I want to make a GET request instead of a POST. How can I do that? Has
anyone else run into this?
Thanks, Ryan
--
View this message in context:
2006 Jun 02
1
Updating html breaks my interface
I have two select menus on a line. The first updates the second:
library: library_select album: album_select
So when you pick a library, the album_select is automatically updated to
show the relevant choices. This is done using ajax. While the ajax request
is loading, I switch the album_select with a loading_select, which is a
disabled select menu with only one choice:
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
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,
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates
some javascript to change the form, the second activates some javascript
on the onchange event which changes it into a textarea form.
This works in Firefox, but not in Safari.
Also, I need the value which is selected. I''ve found an example that
gives the parameter to the javascript, like this:
<input
2006 Jun 16
12
FastCGI times out?
Hello there,
So I''m still struggling with this fastcgi stuff. I''m trying to upload and
process a decent sized ZIP file, but the request dies before it finishes and
I get the following error:
FastCGI: comm with (dynamic) server
"/Users/ryan/Workspace/rails/photos/public/dispatch.fcgi" aborted: (first
read) idle timeout (30 sec), referer: http://photos/album/new/4
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
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 }) %>">
<%=
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
2009 Mar 23
1
Ajax not defined.
This is my code and I am trying to call remote function when somebody
click on add button after selecting something from select_tag. Please
tell me where I am wrong ? I am getting following error: Ajax not
defined.
<input type="button" value="< Add" class="button" onclick="<%=
remote_function(:url => {:controller => ''users'',
2006 Jan 31
4
Ajax and Controller actions
I am new to rails and want to learn the ''best practices'' up front. So I
have a few questions and hope someone can help:
1. Using Ajax to update a div. The remote_function must call an action
on a controller. This causes me two problems:
1.a The action is only ever used by the ajax call, but can now be
accessed through the browser. I want ajax to call a method/action
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi!
Wondering if anyone can tell me what''s wrong with my code?
I''m trying to use the onChange event of a select list to update multiple
divs...
Agile Web Development with Rails (p. 403) suggests using ":complete =>
eval(request.responseText) instead of :update"
I''ve attempted the following test code:
# in the view
<select name="plist",
2009 Apr 12
5
Problems with jRails and ajax helpers
I working on a Rails 2.2.2 app that uses jRails and any time I attempt
to use a Rails ajax helper, I get the following error:
index 116545 out of string
with this stack trace:
vendor/plugins/jrails/lib/jrails.rb:197:in `[]=''
vendor/plugins/jrails/lib/jrails.rb:197:in `build_callbacks''
vendor/plugins/jrails/lib/jrails.rb:119:in `options_for_ajax''
2006 Jun 15
2
FastCGI can''t find rubygems?
Hi all,
I''m trying to use Apache 2.0.52 and FastCGI on Mac OS 10.4.6 and I''m having
some trouble. The server starts up fine, but I get the error at the bottom
of this post once I make a request to the rails app. I was curious if
anyone had an idea as to why it wasn''t working. I have everything installed
correctly (rubygems, fastcgi, ruby bindings, etc). I had this
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 =>
2009 Feb 22
1
degrading ajax calls - how?
Hey - I have a few ajax calls in my app that I''m not really sure how to
degrade to html. For the most part, these are functions that insert or
remove elements to/from the dom.
For example, I have my own edit-in-place on the data, which is called by
start_edit action. This action renders an rjs template that replaces the
view with an edit form.
# view (partial)
<tr
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
2005 Oct 11
2
Pushing Javascript Helper to external file.
I have a table and when I mouseover a row I want a pop-up with some
additional information for that specific row (called remotely).
I can do this easily with something along the lines of...
onmouseover="<%= remote_function(:updated => "notediv", :loading => "
Element.show(''note'');", :url => {:action => ''get_note'', :id
2006 May 31
1
Problem with combining rails helper and javascript
Hi!
I''d like to make ajax request after effect fade finishes. There''s a
callback in Effect class - afterFinish, but it requires the code to be
in function() {*here*}.
When i write :afterFinish => remote_function() it generates following
javascript code:
afterFinish: new Ajax.Updater()
and i need:
afterFinish: function() {new Ajax.Updater()}
How can i do it? I need to
2007 Apr 19
1
How to redirect to other action when it is called using ajax
Hi all,
I am using javascript to call an action with some parameters. In that
action i decide on the basis of parameters either to render some text on
that page or to re direct to some other page. But its seems that my
redirect_to method is not working from that action. Can anybody tell me
some way of redirecting to some other action when that action is
called as a remote_function from