similar to: link_to_remote to update multiple components

Displaying 20 results from an estimated 600 matches similar to: "link_to_remote to update multiple components"

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",
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what
2005 Dec 07
3
update_element_function fail gracefully?
I am using the update_element_function to update the text in some elements. This works fine, however, if I try to update an element that is not on the page anymore, it fails silently and no further javascript statements will be executed within that same request.responseText. Is there a way to fail gracefully in this scenario and ignore the missing elements? Thanks, Tom
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the text area and update a div with the running count of characters in the text area. I tried "onchange" but that doesn''t update until you leave the text area. I was able to get it working using AJAX, but it''s silly to make a needless round trip to the server, when the page already knows
2006 Feb 28
2
AJAX: do render but show element in same click?
I''m a rails newbie. I''ve got a link_to_remote that puts a partial render into a div ("note1", "note2", etc.). As part of the display that comes up, I put in a hide note link (element.toggle). Click that, the div goes away, everything''s great... except now I can''t get it back. How can I call the remote AND make the div show at the same
2012 Jan 25
5
Error: err:module:LdrInitializeThunk Main exe initialization
Hello, I'm new at installing programs to use with wine (well, except the ones that just worked with no problems). I have been trying to run Payday: The Heist and I load up the exe in terminal and I get this: > err:module:import_dll Library d3dx9_40.dll (which is needed by L"C:\\ Program Files\\Payday The Heist\\payday_win32_release.exe") not found >
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
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_id'') %> <% end %> That will update the
2008 Aug 30
1
Heist of MagicJack SIP credentials?
While I myself am not a MagicJack user, I'm curious as to whether anyone here has managed to heist their MagicJack account's sip credentials, and use them to terminate calls using asterisk. Apparently it's as simple as sniffing the SIP credentials. If so, said person would enjoy unlimited termination for $20 year while retaining the flexibility of setting their CallerID to a
2005 Dec 27
0
update_field question
I''m using update_field to update a <div> with the contents of a text_area as it''s updated by the user (a-la-Typo preview style). I''m now trying to preload the <div> so that it shows the contents of the field being edited even if that field doesn''t get edited. In other words, update_field is only called if the field is updated, but I want the
2005 Dec 30
11
Losing my mind with Ajax link_to_remote
I''m playing around with Rails, and I can''t get this to work. I just can''t seem to wrap my brain around it. I''m having some trouble doing an Ajax navigation column. Here''s what I have: view layout: <div id="navigation"> <%= render(:partial => "navigation", :collection => @categories) %> </div> My
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 May 24
0
Javascript as content parameter for update_element_function?
Is there any way to do this? The goal is to have the update_element_function update a div with alternating strings. Is there a better way to do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060524/a99b90de/attachment.html
2006 Jan 01
0
Using standard helper methods in my helpers
Hi... I''ve written some simple helper method. My method uses standard helper methods from Rails. When I try to use them from templates - everything is working, but when I try to execute from my helper I get an exception. Here is my code: module ApplicationHelper def reset_add_function r=update_element_function("add") { link_to_remote( "Nowy watek",
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 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: <%=
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2005 Sep 01
0
Teething problems with Ajax.updater
Hi all, Forgive what I expect is a silly question. I have the following code: #CONTROLLER def calculate render :partial => ''calculate'' end #CALCULATE PARTIAL <%= update_element_function("update_1", :position => :bottom, :content => "<p>New product1!</p>") %> #VIEW <p><label for="order_unit_price">Unit
2016 Aug 05
0
HEIST https
Hey there, today I've ridden about HEIST.
2011 Oct 04
3
Error: Device 0 (vif) could not be connected. ip addr add 10.0.0.329 dev vif28.0 failed
I''ve looked everywhere for the error message I''ve posted in the title, doesn''t seem like anyone else has it (lots of missing hotplugs scripts). We''re using network-nat. ifconfig -a outputs this: eth0 Link encap:Ethernet HWaddr 00:19:99:a8:f4:5c inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.255 inet6 addr: X::X:X:X:X/64 Scope:Link