michaelfox + validation 33
GUMP
august 2011 by michaelfox
GUMP - A fast & extensible PHP input validation class - similarly styled to CodeIgniter's validation http://bit.ly/lutVe8
php
validation
github
github-repo
from instapaper
august 2011 by michaelfox
The H5F library, emulate the HTML5 forms chapter | The CSS Ninja - All things CSS, Javascript & xhtml
october 2010 by michaelfox
Recently I wrote an article for A List Apart about Forward thinking form validation and I introduced a script I wrote that emulates some of the new HTML Forms chapter functionality in older browsers, allowing a developer to use all these new features and have it work the same across the board.
In the spirit of giving back to the community I have released it under a dual BSD and MIT license so you can do as you please with it. I’ve setup a github repository so you can fork it, watch it suggest ways to improve it and submit any issues.
This script doesn’t rely on any libraries. It uses feature detection to find out if the browser already supports the constraint validation API and either hooks into the native support or creates methods to emulate it.
View a live demo Download the source files
How does it work?
Let’s dive into the inner workings of the script and see how some of it works. As discussed in the Forward thinking form validation article the script adds the support for some of the HTML5 forms chapter input types and attributes as well as the constraint validation API.
On page load you run the H5F.setup() method which accepts two arguments, the second being optional. The first argument can be a HTMLFormElement, HTMLCollection of form elements or an array of HTMLFormElements. The second optional argument is an object to setup the class names to be applied to the fields in their different validity states.
shim
html5
javascript
css
forms
html
elements
controls
validation
In the spirit of giving back to the community I have released it under a dual BSD and MIT license so you can do as you please with it. I’ve setup a github repository so you can fork it, watch it suggest ways to improve it and submit any issues.
This script doesn’t rely on any libraries. It uses feature detection to find out if the browser already supports the constraint validation API and either hooks into the native support or creates methods to emulate it.
View a live demo Download the source files
How does it work?
Let’s dive into the inner workings of the script and see how some of it works. As discussed in the Forward thinking form validation article the script adds the support for some of the HTML5 forms chapter input types and attributes as well as the constraint validation API.
On page load you run the H5F.setup() method which accepts two arguments, the second being optional. The first argument can be a HTMLFormElement, HTMLCollection of form elements or an array of HTMLFormElements. The second optional argument is an object to setup the class names to be applied to the fields in their different validity states.
october 2010 by michaelfox
ReekenX's Git-PHPcheck at master - GitHub
september 2010 by michaelfox
Tool to check your PHP files from parse errors before commit.
git
php
hooks
githooks
syntax
validation
programming
development
september 2010 by michaelfox
Making legacy pages work with Web Forms 2 - Opera Developer Community
august 2010 by michaelfox
Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules
* Home
* Articles
* Libraries
* Forums
* SDK
* Authors
* Contribute
* Sign up
Login
User name:
Password:
Lost password? remember
Making legacy pages work with Web Forms 2
By Hallvord R. M. Steen · 5 Apr, 2007
Published in: wf2, html5
The Web Forms 2 specification, part of the HTML5 work at WHAT WG, makes it easier to write and validate forms - but some compatibility problems with legacy scripts exist. I have seen legacy content run into the following classes of problems:
* Un-intended form validation prevents submitting forms
* Legacy scripts are confused by new DOM properties
* Some properties are resolved as URLs
# Form.submit() throws error if form validation fails
Below I will explain each of these with examples and show how you can work around or fix the problems. For more details on how to use Web Forms 2 for new or reworked websites, refer to the article improve your forms using HTML5.
forms
validation
html5
compatibility
crossbrowser
javascript
html
* Home
* Articles
* Libraries
* Forums
* SDK
* Authors
* Contribute
* Sign up
Login
User name:
Password:
Lost password? remember
Making legacy pages work with Web Forms 2
By Hallvord R. M. Steen · 5 Apr, 2007
Published in: wf2, html5
The Web Forms 2 specification, part of the HTML5 work at WHAT WG, makes it easier to write and validate forms - but some compatibility problems with legacy scripts exist. I have seen legacy content run into the following classes of problems:
* Un-intended form validation prevents submitting forms
* Legacy scripts are confused by new DOM properties
* Some properties are resolved as URLs
# Form.submit() throws error if form validation fails
Below I will explain each of these with examples and show how you can work around or fix the problems. For more details on how to use Web Forms 2 for new or reworked websites, refer to the article improve your forms using HTML5.
august 2010 by michaelfox
10 PHP functions you (probably) never use
july 2010 by michaelfox
1. sys_getloadavg()
2. pack()
3. cal_days_in_month()
4. _()
5. get_browser()
6. debug_print_backtrace()
7. metaphone()
8. natsort()
9. levenshtein()
10. glob()
php
strings
validation
debugging
2. pack()
3. cal_days_in_month()
4. _()
5. get_browser()
6. debug_print_backtrace()
7. metaphone()
8. natsort()
9. levenshtein()
10. glob()
july 2010 by michaelfox
jmathai's epicode at master - GitHub
may 2010 by michaelfox
An extremely lightweight PHP framework. It includes caching, session, database, form validation, twitter, oauth and asynchronous/non-blocking curl components.
php
framework
tools
toolkit
development
curl
oath
twitter
forms
validation
database
session
cache
caching
apc
memcache
may 2010 by michaelfox
Unwrongest
april 2010 by michaelfox
Limit is a plugin for the javascript framework Jquery that limits the number of characters that can be entered in a textarea or input field. The plugin can also report the number of characters left before the user reaches the length limit.
Limit is a plugin for the javascript framework Jquery that limits the number of characters that can be entered in a textarea or input field. The plugin can also report the number of characters left before the user reaches the length limit.
jquery
plugins
javascript
textarea
limit
forms
validation
length
string
minimialist
Limit is a plugin for the javascript framework Jquery that limits the number of characters that can be entered in a textarea or input field. The plugin can also report the number of characters left before the user reaches the length limit.
april 2010 by michaelfox
JSON Formatter (& Validator!)
june 2009 by michaelfox
The JSON Formatter (& Validator!) helps debugging JSON data by formatting the JSON into data that is easily readable by human beings.
JSON
javascript
webdev
tools
programming
web
validation
formatter
validator
format
june 2009 by michaelfox
related tags
acid ⊕ ajax ⊕ apc ⊕ app ⊕ bestpractices ⊕ browser ⊕ browsers ⊕ cache ⊕ caching ⊕ cheatsheet ⊕ codeigniter ⊕ coffeescript ⊕ compatibility ⊕ compiler ⊕ compress ⊕ compression ⊕ controls ⊕ core ⊕ crossbrowser ⊕ css ⊕ curl ⊕ database ⊕ date ⊕ debugging ⊕ design ⊕ detection ⊕ development ⊕ elements ⊕ email ⊕ escaping ⊕ extension ⊕ feature ⊕ filter ⊕ firefox ⊕ format ⊕ formatter ⊕ formatting ⊕ forms ⊕ formvalidation ⊕ framework ⊕ git ⊕ githooks ⊕ github ⊕ github-repo ⊕ hooks ⊕ howto ⊕ html ⊕ html5 ⊕ images ⊕ inline ⊕ input ⊕ inspiration ⊕ javascript ⊕ jpg ⊕ jquery ⊕ JSON ⊕ length ⊕ less ⊕ library ⊕ limit ⊕ mac ⊕ mailcheck ⊕ match ⊕ memcache ⊕ minify ⊕ minimialist ⊕ oath ⊕ optimize ⊕ osx ⊕ pattern ⊕ patterns ⊕ performance ⊕ php ⊕ plugin ⊕ plugins ⊕ programming ⊕ reference ⊕ regex ⊕ repo ⊕ sanitize ⊕ security ⊕ session ⊕ shim ⊕ sniffing ⊕ snippet ⊕ standard ⊕ string ⊕ strings ⊕ syntax ⊕ test ⊕ testing ⊕ textarea ⊕ toolkit ⊕ tools ⊕ twitter ⊕ ui ⊕ usability ⊕ useragent ⊕ ux ⊕ validation ⊖ validator ⊕ web ⊕ webdev ⊕ XHTML ⊕ xss ⊕Copy this bookmark: