[TYPO3-dev] extJS library

Steffen Kamper info at sk-typo3.de
Fri Jan 30 21:40:31 CET 2009


Hi,

Dan Osipov schrieb:
> Can there be a "connector" library that would sit in between TYPO3 core 
> PHP and extJS? That way it could handle all the inconsistencies?
> 

something like that yes. What i had in mind (brainstorm mode):

* a global Data-store that delivers result in json format, easy to 
configure, working with DB-class
* a wrapper class that create an extJS JS file having a class wrapped 
with Ext.onReady(function(){ ... });
* a set of validation rules 
like:Ext.form.VTypes["usernameText"]="Username must begin with a letter 
and cannot exceed 255 characters"
Ext.form.VTypes["usernameMask"]=/[-_.a-zA-Z0-9]/;
Ext.form.VTypes["password"]=function(v){
	if(!Ext.form.VTypes["passwordVal1"].test(v)){
		Ext.form.VTypes["passwordText"]="Password length must be 6 to 31 
characters long";
		return false;
	}
	Ext.form.VTypes["passwordText"]="Password must include atleast 2 
numbers or symbols";
	return Ext.form.VTypes["passwordVal2"].test(v);
}
etc

* an easy object for creating nested layouts
* a bridge between LANG and JS for use localized labels

Please leave your suggestions here ;-)

vg Steffen




















More information about the TYPO3-dev mailing list