similar to: AJAX: do render but show element in same click?

Displaying 20 results from an estimated 1000 matches similar to: "AJAX: do render but show element in same click?"

2006 Feb 13
2
Ajax.Autocompleter is not a constructor
Hi Rails, I am having trouble setting up an autocomplete text field. Using rails 1.0.0 and just trying to copy the simple scriptaculous demo (http://demo.script.aculo.us/ajax/autocompleter) fails. My view and controller are set up the same way. In firefox 1.0.4 (and safari, don''t remember the version) I get the Ajax.Autocompleter error in the javascript console when loading the
2006 Feb 27
1
@content_for_sidebar?
Okay, I see this instance variable places, but I can not determine if it is real or where the content comes from. I''ve tried views/<controller>/sidebar.rhtml, _sidebar.rhtml, views/layouts/sidebar.rhtml and views/layouts/_sidebar.rhtml. Does this actually exist? What''s the Rails Way to make a good sidebar? http://www.google.com/search?q=content_for_sidebar Thanks,
2006 Feb 28
2
Comment out RHTML code?
I''d like to be able to comment out a few lines of RHTML code easily. With HTML you can just surround the code in <!-- ... -->, but if you do that with the RHTML, it still gets executed, then the resulting HTML is commented out. Sometimes I''d like to be able to leave the code in but not have it evaluated..usually just for quick tests, but sometimes I want to take the
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 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 Apr 11
2
link_to_remote to update multiple components
How would go about to update multiple components when using link_to_remote? I''ve got a button that lets you switch between languages and it has to update every component in my application (like, let''s say: the main screen, the top navigation bar and the search bar). Each component is created in a different DIV and whenever the language is switched, the entire application
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 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here. I''ve got a link to remote that I believe should be working, but doesn''t seem in fact to do *anything*. I''m looking at the webrick log, since the Book says I should be seeing some hot POST action in there, but there''s literally no change when I click on the JS link. From looking at the source that''s
2006 Feb 10
0
AJAX update for select list onchange?
Hi Rails Users, I have a select list that I''d like to use to update a div onchange. Right now I just have the div appear, but not update: <%= select_tag( "profiles_select", option_tags = @profiles, { :onchange => "new Effect.Appear(''the_profile'', { duration: 0.5 } );"
2006 Feb 14
1
Controlling the controller for text_field_with_auto_complete
Hi Rails, I have a text_field_with_auto_complete that I would like to execute in a different model than the view that rendered it. Is there a good way to go about this? Thanks, --Dean -- Take your time, take your chances [3278.7 km, 273.4] Apparent Rennerian -------------------------------------------------------------------------------- It matters not how strait the gate, / How charged with
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 Mar 03
0
unused composed_of bits
I implemented a Temperature model for my application. It is pretty basic, composed of a temperature, a unit and some conversion methods. In my app model I decided to store temperature values in Fahrenheit, so there is no need to remember the units between invocations. I am having a little trouble composing my app model. A little bit of my temperature class: class Temperature # Composed of
2007 Apr 12
3
[LLVMdev] Compiler Name
Suggestions: Zembla - It's a fictional northern European country in "Pale Fire" by Nabokov. Pala - The island utopia in Aldos Huxley's "Island". Thra - The world of The Dark Crystal. -bw
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
2007 Apr 12
0
[LLVMdev] Compiler Name
Invictus - unconquerable, and Invictus.org doesn't appear to exist. On Apr 12, 2007, at 1:34 AM, Bill Wendling wrote: > Suggestions: > > Zembla - It's a fictional northern European country in "Pale Fire" > by Nabokov. > Pala - The island utopia in Aldos Huxley's "Island". > Thra - The world of The Dark Crystal. > > -bw >
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
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
2006 Feb 24
4
Rails Newbie Forum?
Hi all. I''m a new convert (or at least I want to be a convert) to Rails. I''ve got the book, have read it, done bits and pieces of the demo, and tried to apply it to a rather complicated DB I''ve got here. I''ve got a ton of questions, and before I bore everyone here, is there a dedicated forum for Rails newbies to get help? Yak -- Posted via
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/.