Questions tagged [validating]

107 questions
1
vote
1 answer

Validating a Form?

I'm trying to send an alert saying "Thanks for Registering" after someone fills out my form correctly, but even if there is a mistake in filling out the form, sometimes it still says "Thanks for Registering". I'm using jQuery. Can someone tell me…
1
vote
2 answers

How to validate imagesize in iPhone?

I am doing iPhone Application. In that i am converting the image into base64 string. But, my issue is before converting into base64 string, i want to validate image size as if below image size 250x250, i want to put alertview else if imaage contains…
1
vote
1 answer

Using QValidator in QCoreApplication

I want to use QValidator and its subclasses (QRegExpValidator, QIntValidator) in QCoreApplication, but get the following error: "QValidator: No such file or directory" If I add in .pro file the following line: "QT += gui" - all works fine, but that…
1
vote
4 answers

Validating numeric input with perl regex

I'm having difficulty validating user input with my regex. I'm trying to take user input and make sure it's between 1 and 99. If it's not then it calls the same sub-routine until a validating entry is matched. However, even if the input is between…
user1739860
1
vote
5 answers

TextBox Events in C#

I have a TextBox. After leaving the textBox the first character should be a capital Letter. Three Events work as same. They are Leave,Validating and Validated. if (txtLocl.Text.Length > 0) txtLocl.Text = txtLocl.Text.Substring(0, 1).ToUpper() +…
sree aneev
  • 141
  • 4
  • 5
  • 18
1
vote
1 answer

ActiveMerchant is not validating invalid credit cards

I have an issue with ActiveMerchant credit card validation in my rails 2.3.2 application.(ActiveMerchant 1.4.1) I followed the railscast #145 episode codes exactly. My problem is when I am validation the credit card with invalid data like…
Krishna
  • 58
  • 7
1
vote
0 answers

Sun sTax, JAXB and turning off validation against DTD/XSD/schema

We are using JAXB in conjuction with sTAX XMLEventReaderAPI to parse and extract data xml retrieved by making a REST Call. InputStream responseStream = response.getEntityInputStream(); if (responseStream != null) { XMLInputFactory…
user1432913
  • 79
  • 6
  • 14
0
votes
1 answer

How do I validate that a listbox is not empty in C# winforms using an errorProvider

I have an errorProvider control. I would like to use it to validate if a listbox contains at least an element. Here's my code to register the validating event: this.selectedFieldsArea.Validating +=new…
nche
  • 1,082
  • 3
  • 14
  • 32
0
votes
2 answers

validating 10 characters, can only be numbers, then redirecting to a web address

So what I need to have happen: User types in 10 digits (only digits) and clicks “Submit” On submit – the user gets redirected to another landing page. Here is what I’ve done…and its redirecting, but not really validating the 10 characters, or that…
J.Sims
  • 1
  • 1
  • 1
0
votes
2 answers

Validate HTML from user

How can I validate a HTML code submitted by the user? Looking for