similar to: A missing piece in Prototype helpers

Displaying 20 results from an estimated 30000 matches similar to: "A missing piece in Prototype helpers"

2006 Jul 19
0
Form helpers produce invalid XHTML code!
Hi all The following scaffold creation form code... <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> ...creates this HTML colde: <form action="/en/bookings/create" method="post"> <!--[form:artist]-->
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails? The errors are just totally over the top ugly and not helpful. First of all the ruby -Ilib line always comes before each test and I find it distracting. But if an error occurs on something that is not nil it just gives me the entire contents of that object and that is no small matter when the object is a HTTP request response. Here is
2006 Oct 04
0
Displaying validates_acceptance_of Errors In A Check Box
Hello, I am having trouble displaying a check box which must be checked but hasn''t been. I would like it to be highlighted as in a scaffolded view but the hidden check box field which is generated by the check_box helper is also highlighted, and the text next to it loses its styling. My code follows. Should I get cleverer with the CSS or write my own check_box helper which
2007 Nov 27
1
O/T div.fieldWithErrors styling
this is kinda trivial but I''m anal and it bugs me :) whenever there''s a error in the form the error field is wrapped with <div class="fieldWithErrors"> </div> this throws my form''s styling off because it puts too much space b/t fields and worse makes the form as wide as possible. How do I fix this? I''ve tried div.fieldWithErrors {
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 Apr 09
12
Validating two models from one form
Howdy, I''m working on my first RoR project, and I want to build a form. The tricky thing is, this form needs to insert / update against two models, each with their own validation rules. Unfortunately, I''m having an incredible amount of difficulty with the error handling, specifically the fields wrapped in <div class=''fieldWithErrors''></div>
2006 Apr 25
0
How to manage one to many within application.
Hi, I have an application with a customer model, and an address model. A customer has a one to many relationship with an address. I currently have an add new customer page, that incorporates an "add address" button, which places a helper form within a div using the link_to_remote function. I can click the add address button multiple times, and it will add multiple address
2006 Jul 12
0
Give form elements "fieldWithErrors" class in non-std. way?
All, I want to know how to force an element of my model to be invalid, but not generate any message for it, so that the corresponding form field on a form will show up with the ''fieldWithErrors'' class. I have some checkboxes on my RHTML form, and they are generated with this code <%= check_box_tag("current_job[target_list_ids][]"...etc. %> target_list_ids
2006 Mar 25
7
Overriding <div class="fieldWithErrors">
Does anyone know how to override the <div class="fieldWithErrors"> behaviour when a form field is incorrect? Thanks, Dan
2005 Dec 26
3
Override Validation?
Hi all, is there a way to override the validation methods so as to avoid the div.fieldWithErrors divs from being created on the redisplayed form? Many thanks in advance, Nicky
2008 Jun 04
1
new to prototype : Ajax.Updater
hey guys.. im a prototype rookie here.. the concept of "a framework for javascript" seemed mouth watering.. but my rails got stuck when i started using it. here is the guinea pig im using to experiment on prototype. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html
2006 Feb 24
5
Changing default behavior of fieldWithErrors
Hi! The topic can be a bit misleading, because it may suggest that i want to change css style. What i''d like to change is that normally, when there''s an error, rails creates a div element with the fieldWithErrors class as the parent of the input. I''d like to change this behavior, so the input element itself will have this class added to its current classes and
2006 Feb 14
1
Firefox java script error in prototype.js
Hi, I am usign two selects, a master and a slave: <%= select("master", "id", @master) %> <div id="slave_id_list"> <%= select("slave", "id", @slave) %> </div> <%= observe_field("master[id]", :frequency => 0.25, :update => "slave_id_list", :url => {:action => :update_slave_select},
2006 Apr 03
1
debugging RJS output
Hi, Is there a way to log RJS output in development.log? Thank you. -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
STI and ActiveRecord attributes unprotected
Hi, This does not seem to be covered anywhere. Since base class extends ActiveRecord with a table that has fields for all heirs, would that mean that any heir class can access any of those attributes, including ones that belong to other heirs? Or I am missing something? -- Posted via http://www.ruby-forum.com/.
2005 Aug 19
1
css style fieldWithErrors when using tables
I''ve run across something that I''m not sure how to fix. This is with MSIE, Firefox doesn''t seem to have the same problem. When rails displays form fields in error using the css element fieldWithErrors, and the form field is enclosed in a table data tag, the entire background of the table data element is set to red instead of just the border of the form element.
2008 Apr 07
4
Staff Manager tutorial from "Prototype and script.aculo.us" by Christophe Porteneuve
Hi there, Taking my first steps in Prototype and reading this very helpful book by Christophe Porteneuve. There''s an interesting tutorial (Chpt. 7) on making a tree to organize staff members. The problem is that I can''t make it working in IE. In Firefox it works just great. Did anybody fiddle with it? Maybe somebody has already figured it out. IE says
2010 Oct 09
2
Rails 3 upgraded form validation issue
H All, I have run into a very interesting issue. On one of my apps, after upgrading from 2.3 to 3.0, the form validation started to escape html. Normally what should happen when you submit a form and one of the fields fails validation that field would get surrounded with a <div class="fieldWithErrors"> and so on. That seems to be broken in my app and what I get is the correct html
2007 Jan 13
1
fieldWithErrors - does not work
What conditions must be met for ''fieldWithErrors'' automatic wrapping? <% remote_form_for( :subscriber, :update => ''subscription'', :url => {:controller => ''subscribers'', :action => ''subscribe''} ) do |form| %> <p> <%= form.text_field
2007 Sep 25
0
Prototype Element.down matching in IE and FF
I''ve run into an interesting problem with matching and Element.down. I''ve put together a sample of the problem located at: http://www.ic3dinc.com/form_sample.html The sample uses Prototype 1.6.0_rc0 and I have had the exact same result with 1.5.1.1. This page has a hidden div (schedule_event_contents) that gets added to each form by a javascript link using Insertion.Bottom.