Hi all, simple question really (can hazard a guess but just need to make sure),
Just need a Yes/No answer as can't seem to claify anywhere.
Reason? Web pages for phones, where javascript support is "sketchy" among all mobile browsers, so doing away with anything javascript altogether and was wondering if there are any alternatives.
(A...
Hello all.
I have come unstuck with a simple compare validation.
I have the following code
<asp:TextBox ID="tbxHowMany" runat="server"
style="z-index: 1; left: 310px; top: 385px; position: absolute; text-align: center;"
Width="75px"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="se...
I have a validate_uniqueness_of :field inside my ActiveRecord model. When i do a single create/update it works nicely but i have to do some large batch creation from csv files inside a Transaction
When i am in the transaction the validate_uniqueness_of does not detect the error and the model is saved!
...
I have an ASP.NET page with a jQuery dialog that is displayed to change some data. I am setting up the jQuery dialog so that when the user clicks the OK button it calls ASP.NET's
Page_ClientValidate('validationGroup') via javascript, finds all the invalid controls and changes their CSS class. So here's the scenario: the user opens the ...
Hy,
How i try to do to validate that in a symfony form one of two fields is filled?
In their database definition are'nt required fields but i need that one of two fields will be filled by the user.
Thanks
Like this???
$this->setValidator('phone', new sfValidatorAnd(
array(
...
Hi,
When I started using xVal for client-side validation, I was only implementing action methods which used domain model objects as a viewmodel or embedded instances of those objects in the viewmodel.
This approach works fine most of the time, but there are cases when the view needs to display and post back only a subset of the model'...
I have a form where I am calling the valid() function on each form element separately. I have an field named "altemailaddress" that I set a rule to be "email" and required is false. However the valid() function returns false if there is no value in the input text box.
jQuery("#aspnet-form").validate({
onsubmit: false,
rules: {
...
My issue is the following. I have a XHTML 1.1 page that has a form and input fields. One of the input fields contains a value which is an URI. This URI contains key-value pairs with ampersand (&) as argument separator, that will be passed as a GET request by another web application in the browser.
Usually I would use the entity & to...
We have to validate a CSV file containing various configuration parameters. Are there any standard design patterns to do this type of validation.
More details:
There are different types of records - each with their own validation logic
Certain records cross reference other records
There are rules on the order of the records
There are...
I am trying to conditionalize validation of fields being sent in a view by passing a variable from the view to the model so it knows which set of fields to check.
The model looks like this:
validates_presence_of :first_name, :last_name, :if => :registration_step?
validates_numericality_of :primary_phone, :if => :contact_step?
de...
Hi, I have an alert message for displaying the message of validation. But it includes one - symbol. I did not add this symbol on code.
my code is shown below.
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Login :</font>
</td>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<...
I would like to validate a hostname using only regualr expression.
Host Names (or 'labels' in DNS jargon) were traditionally defined by RFC 952 and RFC 1123 and may be composed of the following valid characters.
List item
A to Z ; upper case characters
a to z ; lower case characters
0 to 9 ; numeric characters 0 to 9
- ; dash
...
I have a file called "build_properties.xml" in my Java project, which is not a valid XML file, and it is not meant to be. It's included by a build system in another place, so I don't want to touch that file. But it is still a part of the Eclipse project.
By default, Eclipse didn't try to validate that "build_properties.xml" is actually...
Hey they,
I am currently working on a application dealing with a XML file. The XML file looks like this :
<config>
<ip>10.10.100.2</ip>
<subnet>255.255.0.0</subnet>
<gateway>10.10.1.1</gateway>
</config>
Now I am on validation. I use XSD. So my validation works fine with the IP element and Subnet Element. I done something like this...
Hello,
Just started with jquery and am trying to get form validation to work using the validation plugin. Then I discovered the maskedinput plugin (http://digitalbush.com/projects/masked-input-plugin/) and tried to use it on a phone number field.
Things work to a point:
When the phone field comes in focus it displays the place holders ...
Hi,
I am using the following regex to validate an email address:
"^[-a-zA-Z0-9][-.a-zA-Z0-9]*@[-.a-zA-Z0-9]+(\.[-.a-zA-Z0-9]+)*\.(com|edu|info|gov|int|mil|net|org|biz|name|museum|coop|aero|pro|[a-zA-Z]{2})$"
Unfortunately, this does not allow email addresses with hyphens underscores. Ex.:
[email protected]
How can I modify th...
In ASP.Net, how do I limit validation messages to only one?
Rule: User must put in a number between 0 and 1000.
Current [undesired] Behavior:
User types 1001: validator says "Please put in a non-negative number beneath 1000"
User types -1: validator says "Please put in a non-negative number beneath 1000"
Desired Behavior:
User type...
I'm trying to prevent Visual Studio from trying to validate my relative image URIs for a WebForms project, but I can't find a way to do it. So far, I can't find any kind of warning ID or category. The images can't be resolved because they are not 'included' in my project, even though they do exist in the file structure.
This is a large ...
I have a nested form, and for the most part it is working great. The only issue that I have is in displaying validiation errors.
Consider the following object relationship: a Project has_many :tasks, a Task has_many :assignments
if a validation error occurs on an assignment, with <%=project_form.error_messages %> It displays Task Ass...
I am trying to attach the validation on a button click. I have:
<script>
$().ready(function() {
//
$("#btnAdd").click(function() {
$("#myForm").validate({
// $("#crap").rules("add", {required: true, messages: {required:"Required input"} });
rules: { crap: "required" },
mess...