validation

Cake PHP autmagic forms and multiple tables

I have a form with the following fields: firstName lastName emailAddress followed by (up to) ten name/email fields, like so friendName-1 friendEmail-1 friendName-2 friendEmail-2 ... etc. The firstName, lastName & emailAddress fields will be saved into a 'referrals' table, but 10 name/email pairs will go into a 'friends' table, c...

How do I validate a virtual attribute in an ActiveRecord model?

I am using virtual attributes to save tags in an Entry model from a comma-separated textbox in my form (based on Railscasts #167): class Entry < ActiveRecord::Base has_many :entry_tags has_many :tags, :through => :entry_tags after_save :update_tags attr_writer :tag_names def tag_names tags.map(&:name).join(", ") end ...

Codeigniter Form Validation...form re-population

I am in the process of creating an input form on a record specific page e.g. (property/rentals/rec_id). On submission, the data should be inserted, validated and return to the original page from which it was sent with any relevant messages. If the validation fails, reload the form page a re-populate the form Echo the specific validati...

Clear validation on textInput when validation is not enabled

Hi, I've created a custom textInput componenet that handles it's own validation using a private validator. The validation is enabled depending on the state of the component i.e. validation is enable when the components state is "edit". However, when the state changes from edit the internal validator is set to not enabled but the vali...

Lightweight validation framework for WPF using M-V-VM

In implementing M-V-VM in a project and following advice of Karl Shifflett about implementing a validation framework, but don't really want to use a full framework (like Ocean) only for the validation part. What validation framework do you recommend that works with the M-V-VM pattern? ...

VSTS 2008 validate GridView Data

Hi ,I am writing Automation script using VSTS(Visual Studio Team System) 2008. i am not able to validate data displaying in GridView . like I am searching something and the result is displaying in GridView . then i want to validate search result using VSTS(Visual Studio Team System) automation tool. ...

Generation of Email Validation Links

Hi all For a Web Application I'd like to generate an email validation link and send it to the user. Like on many public websites, the user should click it to validate his email address. Looks similar to this: http://www.foo.bar/validation?code=421affe123j4h141k2l3bjkbf43134kjbfkl34bfk3b4fkjb43ffe Can anybody help me with some hints ab...

Should you do validation on the server side?

Should you do validation on the server side, or is it ok to just do the validation on the client side? @TheTXI I am happy your amazed I just did not want to leave anything out that could potential change someone answer to give me false information. It seems alot of people touched on what I was going after but the part of the Ajax s...

Valid HTML and the number of TD elements

I have a HTML table with several columns and several rows. The last row does not always have as many TD elements as the other rows. It renders correctly in several browsers I have checked and passes validation checks. But it seems incorrect. Should the number of TD elements be the same in every row? EDIT: This could happen with or witho...

Null error when using JQuery Validation with JSON AJAX

I am using the JQuery Validation plug-in and Ajax for my page. Validation works fine when I leave every thing blank. It also works fine if I enter fields besides the SKU field (the one which AJAX is being used for). I get the problem when I enter something into the SKU input but not the other inputs. When I do the this I get an error: "E...

Should data validation be done at the database level?

I am writing some stored procedures to create tables and add data. One of the fields is a column that indicates percentage. The value there should be 0-100. I started thinking, "where should the data validation for this be done? Where should data validation be done in general? Is it a case by case situation?" It occurs to me that alt...

Changing the message (or exception) in WPF ValidatesOnException binding

I have a WPF application using MVVM. I am using binding to a POCO object. The Textbox is bound to a property in the object like: <TextBox.Text> <Binding Path="CertainProperty" Mode="TwoWay" > <Binding.ValidationRules> <ExceptionValidationRule/> <...

Custom Form validation in CakePHP

This is my form: I want to make sure that AT LEAST one of the name/email pairs are filled in, so I'm working on a custom validation rule in my model. I originally thought it would a simple case of making the first name/email pair mandatory, but this doesn't cover the other fields if someone fills in the third one for example, and omit...

JQuery and the validate plugin

Rather than write my own validation I thought i would use JQuery instead however i'm not finding this easy either. I have a few questions which I hope someone can answer. Firstly, the error messages are only appearing when I click submit. How can I get them to appear after exiting each field? Here's my code for validation. Code: $(docu...

Validation on ViewModels in ASP.NET MVC

Most of the tips on how to implement validation in ASP.NET MVC seem to center around the Model (either building service layers between model and controller or decorating properties of the model with validation attributes). In my application I use ViewModels for all communication between the controllers and the views. I have a ViewMode...

VBA text box input mask

I have two validation for date and time as below in text boxes: 00/00\ 00:00;0;0;_ It will take (dd/mm hh:mm) and works fine But sometimes i put 34/34 56:78 it will take , But it shouldn't Date sholdnot go beyond 31, month 12 time 24 and minute 59 Please help ...

Validation Problem in vba text box

I want to validate a text box where the user enters the date in format dd/mm and time hh/mm in the same text box how to do this? ...

Need a better way to validate ASP.NET checkboxes using a jquery validation plugin?

Problem: I want to validate some ASP.NET-checkboxes using the jquery validation plugin (found at: http://bassistance.de/jquery-plugins/jquery-plugin-validation/) What it's all about: It's not possible to set the name attribute of ASP.NET checkboxes (or is it?). It'll automatically be set, when the control is rendered and can be retrie...

JQuery and validate plugin - how to add a promotional message on submit

I need to put a promotional message either at the bottom of the form or in an alert when a user meets certain criteria. I think an alert might be best. It's to do with certain postcodes so I will need to write a regex (I haven't done this yet). It needs to happen when the user clicks submit and before it goes to the server. I'm not sure ...

ActiveRecord save(false) still validating model

I have a user model on which I check to make sure that the email address supplied is unique: validates_uniqueness_of :email This model acts as paranoid. On destroy, I need to remove the email address so that if the user wants to re-register, they can. For this, I have the following: before_destroy :remove_email def remove_email se...