validation

validation in jquery

Hi this issue is really effecting me a lot any suggestions are greatly helpful I need to add the validation in rules so that If i give a value in one field the other fields should also be filled or If I do not give any value in any of the fields it should be ok This is for my phone number fields I have three fields named as areaCode,...

Regular expression to validate numeric values

Regular expression to validate a text box where i can enter an integer / float value in asp.net ...

Form Data caching in browser -- client-side solution

Basically, I have a form that has some pretty date-sensitive info in it. The risk with the form being cached is that: 1) The user may not notice that the date is wrong and simply think that the server has loaded their saved data (which it should, if the date was correct). They then submit the data and it gets saved to the wrong date. Th...

OnClientClick not working

I have a back and next button in that there is a OnClientClick validation function. This function is not called when i click on that, Please help me Code has given below: <asp:Button ID="btn_view1_back" runat="server" Text="Back" CausesValidation="False" ValidationGroup="Form2" /> ...

How to use Python plugin reCaptcha client for validation?

Hi all, I want to make a captcha validation. I get the key from the recaptcha website and already succeed to put the public key to load the webpage with the challenge. <script type="text/javascript" src="http://api.recaptcha.net/challenge?k=&lt;your_public_key&gt;"&gt; </script> <noscript> <iframe src="http://api.recaptcha.net/...

IDataErrorInfo with complex types

I have an Address object defined simply as follows: public class Address { public string StreetNumber { get; set; } public string StreetAddress { get; set; } public string City { get; set; } public string PostalCode { get; set; } } Fairly simple. On the advice an answer to another question I asked, I am referring to th...

Preventing callback during validation in ComponentArt grid

I have to validate a couple of fields in the CA grid every time a record is updated/added. The grid is used in the callback mode. What i cannot figure out how to do is cancel the callback if a cell is invalid. I am trying to do this 'onBeforeUpdate' event of the grid. I can call set_cancel(true) to cancel the update. But this will change...

Asp.Net WebForm JQuery remote Validation

I want to do exactly the same thing that in this question : http://stackoverflow.com/questions/1249709/jquery-validation-remote-validation-not-working The only thing that change is that I'm using Asp.Net WebForm instead of Asp.Net MVC. So, the solution proposed in this post doesn't work for me... UPDATE From Jeff comment, here's my ne...

how to correctly validate linked fields in Silverlight 3

My problem is with fields whose validation logic is linked - when Field A changes, how do I get Field B (which depends on it) to re-validate? Here's a concrete example. Two DatePickers, one each for Start and End date, bound to the same data model object, as shown below. public class Model { private DateTime _startDate = DateTi...

jQuery multi-email validation/formating

I have a textarea that users enter e-mail addresses into separating them by commas. I am looking for a jquery plugin or snippet that will do live validation on this field so that users have to enter this properly. Any ideas? Thanks ...

jQuery : binding keydown, same behavior except for one

Hello, I have some input (text type). I'd like to the same behavior for all except for one. I tried this : $(document).ready(function() { $("input[type=text]").bind('keydown', function(e) { .... }); $("#MyOtherInput").keydown(function(e) { ..... }); }); MyOtherInput is the input type texte with a specifi...

Magento, translate validation error messages

I have successfully created new rules for the prototype validation, now I need to translate the error messages (Location: String in Javascript). However, I can only translate all the messages, my new custom ones don't appear to be translatable. How do I change this? ...

Is there a PHP validator?

Is there a PHP validator like there is an HTML validator at w3.org? ...

How to make a CSS file valid?

I have a CSS file that uses CSS3 properties (opacity and -moz-* and -webkit-* ones). Of course, it doesn't validate as CSS 2.1. Not a big deal, but nevertheless is it possible to make it a valid CSS 2.1? ...

Best way of validating modal dialog fields?

I often need to have modal dialogs for editing properties or application configuration settings, but I'm never really happy about how to validate these, and present the validation results to the user. Choices and tools are typically:- Design UI so that invalid choices are simply impossible - i.e. use "mask edits", range limits on spin...

When's an Apostrophe not an Apostrophe - validation .Net / Javascript

I have an regular expression validator for emails in .NET 2.0 which uses client side validation (javascript). The current expression is "\w+([-+.']\w+)@\w+([-.]\w+).\w+([-.]\w+)" which works for my needs (or so I thought). However I was getting a problem with apostrophes as I had copy/pasted an email address from Outlook into the forms...

How do I bind my Jquery function to a asp.net button and still allow Validation and PostBack?

Now I could be going about this the wrong way so if there is a better solution please post that as well. What I am trying to do is disable a button once it is clicked to prevent double clicks. In the past I have done my just disabling the button onclick but with webforms I am running into a little bit of a snag because there is validat...

Validating forms using XAJAX

I am using jQuery to identify when a user has submitted the form. Then I call, using xajax, a php method to query the database and make sure that the usename and email address are not already in use. $('#newUserForm').submit(function() { var FormName = $(this).attr('name'); xajax_validateEmailAddressAndUsername(xajax.getF...

Ruby on Rails symbol validation

I have this model: class Story < ActiveRecord::Base validates_presence_of :name , :link end Where a validation for a form take place. But I want also to validate if the string "http" is included in the :link symbol. I can't do :link.include? because :link is symbol. How do I do that? My View is this: <% form_for :story do |f| %>...

Checkbox form validation jQuery

I have a form where a user can select a list of events, each event has the start time as a classname. When the form is submitted, I need to check if the user has selected more than one event with the same starttime. e.g. In Today if the user selected Event A and Event C, it would trigger the validation message. <form> <h3>Today</h3> ...