Displaying 20 results from an estimated 8000 matches similar to: "Validation with AJAX; how to DRY validation?"
2006 Apr 27
5
Realtime Form Validation Plugin Available
Granted, I''m still very much a newbie, but after reading an article on AJAX
that basically states at one point that just because you can use AJAX
doesn''t always mean you should, I have to ask: Why bother contacting the
server (even if it is an insignificant amount of bandwidth) to validate the
sanity of form data (unless you''re actually validating against something in
2006 Feb 27
0
update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div
Hi,
I''m a newbees in javascripting with scriptaculous, but I wonder someone
to help me on that simple (not for me of course !) case :
I''d like to update a second div with Ajax.Updater, when
Ajax.InPlaceEditor has just finished to modify another first div ? How
could I do this in this kind of code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2006 Apr 28
3
how to do form field validation using javascript in rubyonrails
hi all
can any body tell me how to javascript validation in ruby on rails
for form field
thnx in advance
2006 May 29
2
Really easy field validation with Prototype Help
Hello,
I''m trying to implement this. The problem that I am having is that the
form submits via an Ajax call and I can figure out how to get the
validation code to return false if something failed validation. Below
is the link to the webpage but I see nothing on how to have it call a
function when everything is valid.
2006 Jan 23
2
DRY encoding conversion and onload ajax execution
Hi everybody,
my first Rails app is a frontend for customer data pulled from a legacy
postgres database. The db is encoded in Latin1, but my pages will be
UTF-8.
What is the best way of character encoding conversion? I haven''t found
any way to have Rails deal with this natively, so I assume I have to
take care of this myself, right?
Where would I place my conversion code if I want
2006 Mar 05
2
AJAX call chain and DRY questions
Hey
I have a page with a drop list. When the user selects an option in the
drop I call an action in the controller with ajax. Now, in the
controller, I gather some data from the db, but how do I present these
data in a nice way? I really need to make use of the html helpers, but
these clearly are not available in the controller. How do I output the
array that I have gathered?
My view page
2006 Aug 16
2
Q on AJAX with respect to DRY
I have a shopping cart function, and I''d like to set it up to update the
cart with AJAX. My AJAX call will return a view that displays the cart
items.
My question is with regards to keeping things DRY. When the user goes to
"view cart", that page needs to display the cart, then the cart display
needs to update with AJAX calls when items are added from that page. It
would
2006 Feb 12
2
link_to_remote (AJAX) and tables: IE issues, validation?
I have a table that lists domain names, with a form next to it to add
new domains.
I have AJAXified this so that new domains are immediately added as table
rows. This works fine in Firefox 1.5/Win, but not in IE6/Win. Domains
are added into the database, but the HTML table is not updated unless
you reload the page.
Some googling tells me there are issues with e.g. link_to_remote
updating
2006 Jan 22
6
Bug in Script.aculo.us'' Ajax.InPlaceEditor?
Guys,
I am likely going to submit this as a bug, but wanted to see if anyone
else is experiencing it. I''m trying to use an Ajax.InPlaceEditor. In
firefox, it works great, but in IE, it adds two form elements when
clicked instead of one.
In other words, you have two text fields, two ok buttons, and two cancel
links after clicking an element to be edited.
This even happens when
2003 Aug 15
0
Re: [R} stars graphs
I thought about that star graph again, and realized that it would be quite
a handy thing for visualizing cyclic data like time or compass direction.
Here is a cleaned up (and renamed) version to do a polar plot that starts
at the right and goes counterclockwise or a 24 hour clock plot that starts
at the top and goes clockwise. There are probably other varieties that
would be interesting.
Jim
2006 Feb 02
4
Doubts on validation
Hi All,
View
********
<tr>
<td><b>Student: </b></td>
<td><%= text_field "student", "fname", "size" => 40, "maxlength"
=> 40 %></td>
</tr>
<tr>
<td><b>Program: </b></td>
<td><select id="student_program_id"
2008 Jun 06
2
Scriptalicious: Ajax Inline Text Editor
Hi, I''m just starting out with Scriptalicious + Prototype, and I''ve
run into a problem.
I''m trying to create an Ajax.InPlaceEditor that combines the custom
size textbox, and the custom parameter (from the examples in the
scriptalicious documentation)
http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor
I''ve tried a couple different methods (one of
2006 Jul 21
1
Ajax.InPlaceEditor is not a constructor error?
Hey
I''m getting a Ajax.InPlaceEditor is not a constructor error on some of
my pages.
I''ve included the following .js''s:
:defaults
scriptaculous
Any ideas?
Thanks guys!
Gustav
gustav@rails.co.za
--
Posted via http://www.ruby-forum.com/.
2008 Jun 02
0
Ajax.InPlaceEditor <br>-Tags in a textfield
Hey,
i''ve got a problem using the InPlaceEditor as a textarea with the
current version of Script.aculo.us and prototype. I have some formated
text (using <br>) in the div.
After i updated scriptaculous today it doesn''t convert the <br> to \n
for correct formating in the textarea if i click into for editing.
Instead of this i can see the <br>-tags in the
2006 Feb 26
0
Ajax, MemoryStore and sessions
Have you ever worked with Ajax, memoryStore and sessions in Rails?
I''m trying to pass a value through a session variable to various methods.
I''m calling the methods with Ajax on a submit button. I do this twice on a
page. The first time I pass a variable from the page to the controller and
store it in the session and write a log entry. This works fine. When the
second button
2005 Nov 20
1
Deleting InPlaceEditor
Howdy,
I have created several InPlaceEditor''s for each of my menu items. This way i
can easily rename them, however when i rename a menu item, it renames
several id''s in the document.
I then need to adjust an InPlaceEditor to point to the new id. It seems an
inplaceeditor cannot be changed, so i have been tryiny to delete it, then
create a new one.
How do i delete an
2009 Nov 06
0
Nested objects not propagating from view
I thought I had this fixed, but apparently not. It works okay from the
console, but not from the view. I have the following:
# partial schema
create_table "users", :force => true do |t|
t.string "login", :null => false
t.string "first_name"
t.string "last_name"
t.string "email", :null => false
2009 Apr 03
2
Problem with spacing
I''m having the devil''s time trying to get things laid out correctly.
I''ve attached a screenshot so that you can get an idea of what I''m
seeing. I''ve got a very unattractive space under the two combo boxes,
and another one under the buttons. I don''t understand how to reduce
this.
I know it''s impossible to guess what idiocy I might have
2005 Mar 10
2
Newbie question - form validation
Hi,
I am sorry for maybe stupid question. I am new in rails.
I am trying to create very simple weblog systeme. I know threre are
plenty of them, but It''s good to study. I create following rule in
models/post.rb
validates_length_of :header, :in => 3..50, :allow_nil => false,
:message => "At least 3 characters"
It''s working fine with default scaffolt add
2006 Jun 05
3
ActiveRecord validations and FormBuilder
Hi,
I''m writing my own FormBuilder and I wanted to put an asterisk or
something next to any required fields. The Builder has access to the
AR object, is there any method I can call on the AR object that will
tell me whether or not a particular field is required? Failing that,
can I access the complete list of validations so I can look through
it for instances of