validation

Any crossbrowser issues with making up your own HTML elements?

I understand that with a few simple arrangements, the new HTML5 elements can be used even in older browsers. Does this mean the browsers simply don't really care about what the tags are named? So would there be any critical issues with making up your own elements, like <comments></comments> or <feature></feature> or <chapter></chapter> o...

Flex: Restrict data input

I have a TextField as: <s:TextInput restrict="A-Z0-9_" maxChars="30"/> And I am restricting the input to: Capital letters Numbers _ no spaces max chars 30 How can I restrict the input more to allow only letters at the begging and end? ...

server side validation ?

hi all i want to know that if apply server side validation on text box then when validation event fire (i means in wich state of page cycle this validation has been done in server side) ...

Billing Address is the same as Mailing Address

I'm using Spring MVC and have a page in my web application where I have a mailing address field that is mandatory and a radio button with a question asking 'Is the billing address the same as the mailing address?' Neither yes or no is selected by default to force the user to select an answer to the question via validation. I have curren...

MVC 2 Html CheckBox Client-Side Validation

Hi, this is probably simple but has been driving me nuts. I have searched all over for this and found people that have mentioned it but no solution provided. I have a simple viewmodel that has a boolean property with no data annotations on, other properties do but these do not effect the problem. Public Property AcceptSurvey As Boolean...

Validate an XSD using Java

I would like to automatically validate that an XSD Schema is correct. Is there a java API or something Í can call to do this automatically? ...

Google privacy page html invalid

Viewing the html source for Googles Privacy Page the header is: <!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <title>Google Privacy Center</title> <link rel="stylesheet" href="//www.google.com/css/privacy.css"> <h1><a href="/"><img src="//www.google.com/intl/en/images/logo_sm.gif" alt="Google"></a> Privacy Center</h1> ...

Input Validating in Spring MVC

I know the Commons Validator framework is the de facto standard for Struts projects to validate input values both on the server side and the client side. Is the same true for Spring MVC projects? The reason I get the impression that it may not is that most Struts books and forums talk a lot about the Commons Validator framework, but on...

HTML, CSS Validity and its Impact Upon SEO

I'm starting to focus on SEO for my site and a number of SEO tools have mentioned that valid CSS and Markup is something that search engines factor into rankings. My site renders the way I want it to in browsers. However, since I'm using -moz-border-radius and -webkit-border-radius quite extensively, I'm getting a lot of errors when I ...

PHP regex for url validation, filter_var is too permisive

First lets define a "URL" according to my requirements. The only protocols optionally allowed are http:// and https:// then a mandatory domain name like stackoverflow.com then optionally the rest of url components (path, query, hash, ...) For reference a list of valid and invalid url's according to my requirements VALID stackoverf...

asp.net mvc 1.0 Validations

Im working in asp.net mvc application which was done in mvc 1... so validations were done following the nerd dinner 1.0 tutorial I just defined a rule like this public bool Is_CellPhone(string val) { Regex celular = new Regex("^04[12][246][0-9]{7}$"); return celular.IsMatch(val); } and ...

Why not use HTML tags in websites' text editors?

Hi all, I may need to implement this sometime in the future, but I think the trigger for the question now is mainly curiosity. I thought of how to write a text editor to a web site I'll build soon, and saw this site's (and other's) way, so I thought - isn't it a bit too complicated? If tags should be used from the first place, why not le...

Avoid uppercase input with jQuery Validate

I'm making a classifieds ads website where users submit ads through a form (like Craigslist). Many users write the title or description of their ads in UPPERCASE to get more attention, but I dont want to affect the overall appearance of the website. I would like to stop this, but still allow the use of acronyms of less than three upper...

How can I include rails code inside a validation message?

validates_presence_of :match, :message => "for your name and password could not be found. Did you #{link_to "forget your password", help_person_path}?" That's what I want to do. I can interpolate variables that are set in the model, but using simple Rails code like "link_to" doesn't seem to work. Which is a bummer. ...

Android Error handling - Sorry - The application has stopped unexpectedly

I've got it wrapped in a try catch, but the exception still trips that ugly screen. URL u = null; try { u = new URL(txturl.getText().toString()); } catch (MalformedURLException e) { ReportError(e,"Unable to connect to "+u); } calls this: private void ReportError(Exception e, String message){ Displ...

facebook user validation

Hi, I have an Iphone app. I am using facebook connect when for user authentication. I am sending score and fbuser Id to my web server. How can I validation this user valid or not? Thanks ...

jQuery: Check to see if table row containing certain values exists already

Hi All, I have a jQuery script that appends a row to a table. In short, the user can select a value from a drop down menu, then enter in 'x' amount of months and hid 'add' which appends the row to the table, for example the following row is appended by the user: <tr> <td>Some Value</td <td>2</td> </tr> Now, if the user performs ...

Can I add Microdata from HTML5 to a XHTML Strict site and still be compliant?

Hi I've got a site coded in XHTML 1.0 Strict. I want to use the new Microdata to add breadcrumbs to my site (so Google will understand them). My old non-microdata marked-up breadcrumbs look like this: <ul> <li><a href="...">Level 1</a></li> <li><a href="...">Level 2</a></li> <li><a href="...">Level 3</a></li> </ul> According t...

ASP.Net validator styling

I have multiple validators on a textbox (see structure below). When the RequiredFieldValidator passes but the CustomValidator fails there is a gap between the Textbox and the CustomValidator as the RequiredsFieldValidator has a Hidden CSS property. [FieldLabel] [TextBox] [RequiredFieldValidator] [CustomValidator] The HTML output from ...

Validation of Facebook Badge in Rails form

I would like users of my Rails application to be able to submit their Facebook Badge as input in a form, but I absolutely want to to verify that what they provide is a valid Badge, not something that may compromise the security of my system (Javascript ...). Is there a good way to validate a form field that contains a Facebook Badge? ...