Skip to main content

Posts

Showing posts with the label validation

Validating URL in Java

I wanted to know if there is any standard APIs in Java to validate a given URL? I want to check both if the URL string is right i.e. the given protocol is valid and then to check if a connection can be established.

Zend Framework form with jquery

Any one a idea how to simply create a form with Zend_Form and jquery? I want to use Zend_Form to validate the form so I don't have to dual script the form in JavaScript and PHP. Thank you, Ivo Trompert Source: Tips4all

How to check php syntax of multiple files at once?

i have a svn server that i checkout the repository in my computer the main repositiry is about 2k files 3rd party generic code classes custom classes i have made changes to lots of files (mainly php) and i want to make sure they are all valid before i commit svn commit -m "i fix the bug #293" how can i check all the files at once to make sure they are valid and no php errors so i dont have to manually check all these files thanks

Android JAVA String Validation

i have a question : I want to create an app that take a String from user input. This String will be in an email format. So there's some requirement's : .(full stop) can't be placed before @ .(full stop) and @ can't be more than one .(full stop) and @ can't be side by side Note : This is NOT a school homework(i just felt that this is like a homework after i typed it), i just want to learn more about String :D I already did some research's but i still can't solve those problem's :D Thanks all, and sory if i made some mistake's, English is not my native languange :D

Check if URL is valid in Android without catching Exception?

See, I have to check like 50+ URLs for validity, and I'm assuming that catching more than 50 exceptions is kind of over the top. Is there a way to check if a bunch of URLs are valid without wrapping it in a try catch to catch exceptions? Also, just fyi, in Android the class "UrlValidator" doesn't exist (but it does exist in the standard java), and there's UrlUtil.isValidUrl(String url) but that method seems to be pleased with whatever you throw at it as long as it contains http://... any suggestions?

Validate field, select or checkbox without form tag

Good day, I found a lot of topics about that, but, without a proper answer. Many of topics ended with question why you just can't add form? I'm working on a project that based on ASP.NET and I have one form tag, one form tag that contains all the html code inside it. I can't use any ASP.NET controls and must done validation by front-end (jQuery). Everything is fine when there is only one form and one submit button, then I can use simple query validation plugin, but it gets complicated when I have more than one form and of course more than one submit button. Any suggestion, ideas or real example how to do that? Maybe I can somehow put every field and submit button inside a div and validate them by submit within that div? Thank you!