If the user is working with a browser that supports dynamic HTML (DHTML), Validation can perform validation using client script. It can provide immediate feedback without a round trip to the server
Questions tagged [client-side-validation]
512 questions
6
votes
2 answers
Validation with backbone.js and Ruby on Rails
Does anyone have any advice or examples for doing validation with backbone.js and ruby on rails 2.x or 3.x?

Vince
- 1,441
- 1
- 14
- 19
6
votes
3 answers
Rails 3: client_side_validations gem and devise password validations
I've got the client_side_validations gem working really great on my forms. I'm using Devise for my users model and when I go to the edit_user_registration form, validations are thrown up for everything except the :current_password, :password, and…

trying_hal9000
- 4,343
- 8
- 43
- 62
6
votes
1 answer
RequiredIf not working in MVC 5?
I would like to know if there exists RequiredIf annotation in MVC 5 because I'm in trouble trying to use it because it seems that it doesn't exists in MVC 5. Is there any solution, or I'm missing some library? (I know it exists in MVC3).
Also is…

Shmwel
- 1,697
- 5
- 26
- 43
6
votes
2 answers
Yii- client side validation is not working on CActiveForm
I've an active form in my application. But the client side validation is not working. The code of the form are as shown below:
beginWidget('CActiveForm', array(
'id'=>'application-data-student-form',
…

dlthp
- 116
- 6
6
votes
1 answer
How get AngularJS element by name?
In my form validation there is part of server validations.
So I should get back from the server list with the names of the fields and a string with the error in each of them.
My idea was to write a general code knowledge to deal with all fields…

Akuka
- 73
- 1
- 2
- 6
6
votes
2 answers
asp.net 4.5 webforms model binding : client side validation supported?
I'm a huge fan of asp.net 4.5 webforms model binding using data annotations.
ascx:
…

BGR
- 131
- 1
- 7
6
votes
4 answers
Rails' client-side-validation form_for error
I am using client validation rails gem and I got this error. Any idea.....
wrong number of arguments (3 for 2)
Extracted source (around line #1):
<%= form_for @user, :validate => true do |f| %>
Trace of template inclusion:…
user2473975
6
votes
3 answers
Client side validations gem not working if I fetch form via ajax request
If I fetch a simple_form using ajax request, client side validations gem doesn't work..
<%= link_to 'Add +', new_group_path, :remote => true, :id => "new_group_link" %>
Now the form new group will show up and its not triggering client side…

Mohit Jain
- 43,139
- 57
- 169
- 274
6
votes
2 answers
Change order of validation triggering in asp.net mvc 4 model
This is my model with property OldPassword
[Required]
[StringLength(16, ErrorMessage = "The Old Password must be at least 8 characters long.", MinimumLength = 8)]
[RegularExpression("^(?=.*[a-z])(?=.*[A-Z]).+$", ErrorMessage = "Old Password is…

Sandeep Kumar M
- 3,841
- 3
- 38
- 59
5
votes
2 answers
rails 3: client_side_validations throwing alert on running unique validation
I am using client_side_validations gem to perform a form validation in rails 3.
everything works fine except when the firefox/ie throws javascript alert
when unique validation ajax runs and return 404 error message.
The author says a 404 means…

dbKooper
- 1,035
- 10
- 17
5
votes
6 answers
User input validation, client-side or server-side? [PHP/JS]
Is it better to validate user input before it's sent to the server with JS or server side with PHP? Or maybe it's worth doing both just to be on the safe side?
I'm creating a site (very simple at the moment) that has a members area/admin area/etc.…

Shogun
- 53
- 1
- 3
5
votes
5 answers
How to trigger ASP.NET client-side validations without submit?
I have a website in ASP.NET (WebForms, NOT MVC) which has a survey form divided in several slides. Each slide has a next button that, obviously does a transition (client-side, not post back or remote request) to the next slide.
In each slide I have…

empz
- 11,509
- 16
- 65
- 106
5
votes
1 answer
How to create File Object in client side Javascript for unit testing?
I am using mocha, chai, karma along with PhantomJS and related addons. How can we create a client side File object to pass it to FileReader API ? I have to upload a test jpeg file, create a file object and pass it to FileReader api to continue…

Deepan Prabhu Babu
- 862
- 11
- 18
5
votes
1 answer
ASP.Net 4.5 Twitter Bootstrap and Client Side Validation
I have a rather simple setup here using the new ASP.Net 4.5 in a Web Forms solution. I have been using Twitter Bootstrap for nearly a year and really enjoy the time it saves me and the consistency it brings to the table. Some of their javascript…

Grandizer
- 2,819
- 4
- 46
- 75
5
votes
1 answer
Client Side Validations doesn't work in production, but works in development
This is my User model:
class User < ActiveRecord::Base
rolify
devise :database_authenticatable, :registerable, :token_authenticatable, :confirmable, :timeoutable,
:recoverable, :rememberable, :trackable, :validatable,
…

marcamillion
- 32,933
- 55
- 189
- 380