search for: evaluate_remote_response

Displaying 12 results from an estimated 12 matches for "evaluate_remote_response".

2006 Mar 13
2
How to apply an effect to a link_to_remote :update without using evaluate_remote_response?
...ore I make the request. link_to_remote :complete => visual_effect(:slidedown) doesn''t do what I want it to do. My current solution is: <%= link_to_remote ''New card'', :url => { :action => ''new_card'', :id => @stack.id }, :complete => evaluate_remote_response %> and then new_card returns JS: new Insertion.Top(''cards'', ''<%= escape_javascript(render(:partial => "editcard", :locals => { :editcard => @card }))%>''); new Effect.SlideDown(''card<%= @card.id %>''); but t...
2006 Sep 10
2
Issue with radiobutton and remote_function in IE.
...#39;', :with => "''customer=R''", :loading => "Element.show(''loading-indicator1'')", :loaded => "Element.hide(''loading-indicator1'')", :complete => evaluate_remote_response, :url => { :controller => ''live'', :action => ''select_plan'' } ) -%>" >Residential <input type=radio name="register[Customer]" value=B onchange="<%= remote_function( :update...
2005 Dec 21
1
for_remote_tag to update diffrent <div> depending on call result ....
hi, is there a way to use form_remote_tag to update one div or an other depending on the call result...??? perhaps with evaluate_remote_response but can''t get it to work. help thanks olivier
2006 Apr 12
22
Dynamic Select Box
Hi, I''m new to rails/ruby having come from PHP and am just starting to get my head round how easy it can be :) However, can anyone point me in the right direction for dynamicaly updating a select box based upon the choice of a previous select box, without a page refresh. Any and all help greatly appreciated. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
10
form_remote_tag and redirects
...39;ve found is the following, which is pretty ugly, as it displays the javascript I''m invoking on the page prior to the redirect. Here is the code: The Form ============ <%= form_remote_tag(:update => ''message'', :complete => evaluate_remote_response, :url => {:controller => ''login'', :action => ''login''}) %> The Action ============ if logged_in render(:text => "window.location.href = ''http://0.0.0.0:3000/admin'';") else re...
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
...rything within each <DIV> element with something new. When I try what I have, nothing changes in the browser. The (what I think are the) relevant code snippets are as follows: Calling view: <%= form_remote_tag(:url => {:action => ''create_problem''}, :complete=>evaluate_remote_response) %> Controller action: @choices = get_prob_list_choices render(:layout=>false) Returning view: <% update_element_function("new_prob", :binding=>binding) do %> <%=render(:partial=>"new_prob")%> <%end%> <% update_element_function("prob_l...
2006 Feb 05
0
Using javascript with update_element_function
Hi, I am using evaluate_remote_response and update_element_function, to update elements with blocks of content, something like this: <% update_element_function("div_id", :binding => binding) do %> <div id="newdiv_id"> This is a new div! </div> <%= draggable_element(''newdiv_i...
2005 Aug 17
5
asynchronous Ajax.Updater
I had one point in my project where I needed a synchronous Ajax call; in other words, I wanted the Ajax.Updater call to not return until the content of my page had been updated. However, I found that if you call Ajax.Updaterwith the {asynchronous: false} option, the onComplete() function would never be called and your content would not be updated. Was this the intended behavior? I added the
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
...update(''setupslist_display'',''''); Element.show(''setupslist_progress'')", :loaded => "Element.hide(''setupslist_progress'')", :update => ''setupslist_display'', :complete => evaluate_remote_response %> <%= select "website", "id", Website.find(:all, :conditions => ["merchant_id = ? AND sitetype = ''PPC''", @session [:user].merchant_id]).collect {|p| [p.domain, p.id]} %> <%= image_submit_tag "http://images.bluechips.com/Domain...
2006 Feb 01
0
Using draggable_element doesnt work with update_element_function
Hi everyone, I am writing a ruby on rails application, and making heavy use of AJAX calls and evaluate_remote_response. In my remote responses I often have several update_element_function calls going on, to update several divs on the page. What I am doing is calling update_element_function, with the content as a block. Inside the block I usually have html, or make calls to other partials or components. This all wo...
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
...t 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", class="required", onchange="<%= remote_function(:complete => evaluate_remote_response, :url => { :action => :updateDivs }) %>" > <option>Select a Person</option> <option>Select a Dog</option> <option>Select a Frog</option> </select> <br> <div id="detail1"> </div> <br> <div id="...
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX :evaluate_remote_response. I use UTF-8 in my pages, and my app requires that I be able to, say, put Japanese characters in. The problem is that when I switched this over to an RJS template it started eating the encoding. I now get garbage characters where before I got the correct ones. The code for the RHTML: <%= upda...