similar to: rjs woes, any hints?

Displaying 20 results from an estimated 1000 matches similar to: "rjs woes, any hints?"

2007 Dec 08
2
Assigning submit handler to form
Hi folks, A quick question for somebody. I''m adding a simple validation JS to my form by attaching it like so: $(''my_form'').observe(''submit'', function(e) { return view_ns.validate_form(Event.element(e)); }); The validate_form() function returns true or false. But regardless of it''s return value, the form is always submitted. ''sup wi
2008 Jul 27
2
Rails Cookbook review
Guys: Stuck at the mall today, and just had to crack Rails Cookbook, by O''Reily. It had a recipe for accepting dynamically created forms. The sample output looked like this (reconstructed): p params[:my_form] > ["1-1" => 0, "1-2" => 0, "1-3" => 0, "2-1" => 0, "2-2" => 0, "2-3" => 0,
2006 May 09
2
[Prototype] Why doesn''t calling submit() on a form result in the execution of the onsubmit event handler?
Hi, Is it normal that a call to $(''some_form'').submit() doesn''t result in the execution of an onsubmit event handler on ''some_form''? Thanks, - Rowan -- Morality is usually taught by the immoral. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Dec 28
2
form reset after successful form submission
hi, what''s the way to reset the form generated by the form_remote_tag after the successful submission of the form? thanks
2006 Jan 18
6
Autocomplete related fields
I have a table that has city, state and postal code. I want to auto-fill the city and state when a postal code is entered. The city and postal code are simple text fields, but the state is a drop-down list with abbreviations as the value, and the full state name as the option text. I assume with Ajax.Updater I could just return the HTML for both the city and state fields -- including the entire
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all, I cannot figure out how to correctly use the with_output_buffer helper method (located in ActionView::Helpers::CaptureHelper) inside a custom FormBuilder. Below follows a simplified example. I''m trying to achieve the following behavior in an ERB as suggested in the form_for helper docs in the Rails source: ========== <%= form_for @object, :builder => MyFormBuilder do
2006 Jul 26
1
my "observer" is blind
Any body have an idea why my first attempt to use "observe_field" isn''t working? <%= start_form_tag(:name => ''my_form'', :controller => ''boo'' , :action => ''ya'') %> <%= radio_button_tag(''foo'', ''true'', checked = true) %> <%= radio_button_tag(''foo'',
2006 Jun 10
0
DRY Up Lots o'' Mailers
I have a heap of fill-out-form/send-website-operator-mail/send-user-confirmation types of forms. It''s daunting when you think about how many files it takes to do this. I''m not coming up with an obvious "Rails" way to pull it off, so I thought it''d be good to know if anyone else has worked through this (7 per form!). models/ my_form_data.rb
2006 Apr 05
1
FormTagHelper form names: possible?
Thank you to everybody that has helped me since I signed up. I''m flying along thanks to you. I have a question about the FormTagHelper "start_form_tag": I''ve been trying to figure out how to get Rails to output a "name" attribute for my form so I can hook in a Javascript to focus on a field inside of it on load, but it doesn''t look like I can do
2006 Jun 16
2
RJS replaces JavaScript?
Hi All, I am currently devleoping a Rails application and I need to do following as part of client side operations, 1. HTML Form validations 2. AJAX I am currently calling Javascript methods from views of my application; I heard about RJS(Remote Javascripts) templates; are the replacing Javascript altogether? can I use RJS for HTML Form validations and AJAX? What I believe is that with RJS
2006 Apr 16
11
RJS templates not found
I am running Rails 1.10 and wanted to check out the RJS templates. Rails doesn''t seem to find them. I did issue the rake comment update_javascripts and that did not correct the problem. RJS is part of 1.1 right? Any ideas? Thanks. -- Posted via http://www.ruby-forum.com/.
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view: <h2>Tags</h2> <% unless @recipe.tags.empty? %> <table> <tbody id="tags"> <%= render :partial=>''tags/tag'', :collection=>@recipe.tags %> </tbody> </table> <% end %> <% form_remote_tag :url=>tags_path(@recipe) do%>
2008 Mar 31
2
Rails and Partials
Excuse my ignorance on partials but..... I am trying to use partials to create a uniform display box built with html tables. The only way I have thought about accomplishing this is to create two partials: _start_box.erb ---------------- <table id="box" width="<%= width %>"><tr><th><%= h(label_text) %></th></tr><tr><td>
2006 Mar 22
1
RJS - Still not working in IE
The previous thread on this topic got a little disjointed, so I thought I''d summarize the issue again, in hopes that someone could help. To re-iterate, this rjs works in Firefox and Safari on Mac, and in Firefox on Windows. It fails, in IE on Windows. The failure is that the second page.replace_html seems to do nothing. My environment is: Rails 1.0 + RJS Plugin Updated
2006 May 16
7
RJS head scratcher
I''ve been joyfully using RJS in a lot of our work lately, with no issues whatsoever. However, I am porting an application to RJS templates that we''ve had for a while, and having some issues. When I use Firebug to see what is going on, the response comes back like this: try { new Effect.Highlight("gi_error_row",{duration:20}); } catch (e) { alert(''RJS
2006 Apr 11
12
RJS
I am trying to use RJS as shown in this tutorial : http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates However it does not seem to work. I am not getting any excpetions in the logs. Here is what the logs say : Parameters: {"action"=>"add", "controller"=>"homepage"} Rendering homepage/add The homepage/add is named add.rjs I know
2006 Jul 16
7
RJS and Action Renders but page doesn''t update
All, I am trying to perform a simple ajax task and am having some difficulties with the page showing the response. The action performs, but no response on the page. I have found examples on the web and I believe I have copied and pasted exactly what works from the demo site. However, on my system it isn''t finishing. For a simple test, I have limited it down to an alert.
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person who complained of problems specific to IE, but that''s what I''ve got. My environment is: Rails 1.0 + RJS Plugin Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support) Monkeypatched in_place_editor to support evalScripts I have just started using RJS, and I have two .rjs templates.
2006 Mar 14
7
Starting with RJS - not working
Hi, I''m trying to work with RJS and folowed Cody Fauser''s tutorial (http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates) I''ve started by creating a new rails applications and executing rake freeze_edge rake rails:update:javascripts rake rails:update:scripts After that I''ve created a controller: class DtestController < ApplicationController
2006 Oct 10
7
Problems with RJS w/ Lighttpd & Ubuntu
I have my code working on my local machine no problem, but when I upload to the server the RJS effects I have aren''t working. The server is running Ubuntu Dapper w/ lighttpd while on my local machine I''m using webrick. For kicks I shut down lightty and booted my app on the server with webrick and it works fine. So it''s definitely a lightty issue. Anyone else seen