iDave
5 Oct 2009, 12:35 AM
Hi everyone!
I would like to introduce my project JXT (http://www.jxtproject.com).
JXT is a framework based on custom XHTML tags, which let you use jQuery and Ext widgets without writing a single line of javascript code...
and it doesn't require programming skills other than XHTML.
You can create an Ext component by using the following markup:
<jxt:widget type="ext" name="Ext.FormPanel">
<jxt:cfg name="labelWidth" type="int" value="75"></jxt:cfg>
<jxt:cfg name="id" type="string" value="extform"></jxt:cfg>
<jxt:cfg name="url" type="string" value="save-form.php"></jxt:cfg>
<jxt:cfg name="frame" type="boolean" value="true"></jxt:cfg>
<jxt:cfg name="title" type="string" value="Ext FormPanel"></jxt:cfg>
<jxt:cfg name="bodyStyle" type="string" value="padding:5px 5px 0"></jxt:cfg>
<jxt:cfg name="width" type="int" value="250"></jxt:cfg>
<jxt:cfg name="defaults" type="object" value="width: 150"></jxt:cfg>
<jxt:cfg name="defaultType" type="string" value="textfield"></jxt:cfg>
<jxt:cfg name="items" type="array">
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="First Name"></jxt:cfg>
<jxt:cfg name="name" type="string" value="first"></jxt:cfg>
<jxt:cfg name="allowBlank" type="boolean" value="false"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="Last Name"></jxt:cfg>
<jxt:cfg name="name" type="string" value="last"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="Company"></jxt:cfg>
<jxt:cfg name="name" type="string" value="company"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object" value="fieldLabel: 'Email', name: 'email', vtype: 'email'"></jxt:cfg>
<jxt:cfg type="object" jsclass="Ext.form.TimeField">
<jxt:cfg name="fieldLabel" type="string" value="Time"></jxt:cfg>
<jxt:cfg name="name" type="string" value="time"></jxt:cfg>
<jxt:cfg name="minValue" type="string" value="8:00am"></jxt:cfg>
<jxt:cfg name="maxValue" type="string" value="6:00pm"></jxt:cfg>
</jxt:cfg>
</jxt:cfg>
<jxt:cfg name="buttons" type="array">
<jxt:cfg type="object">
<jxt:cfg name="handler" type="function" value="alert('click on save!')"></jxt:cfg>
<jxt:cfg name="text" type="string" value="Save"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="text" type="string" value="Cancel"></jxt:cfg>
<jxt:cfg name="handler" type="function" value="Ext.getCmp('extform').getForm().reset()"></jxt:cfg>
</jxt:cfg>
</jxt:cfg>
<jxt:target>
<div style="float:left; margin-right: 60px"></div>
</jxt:target>
</jxt:widget>
There are a lot of things to say about JXT, if you are interested please go on here: http://www.jxtproject.com/discover-jxt.shtml
The project is really new and at its first beta, let me know your impressions.
Thanks
I would like to introduce my project JXT (http://www.jxtproject.com).
JXT is a framework based on custom XHTML tags, which let you use jQuery and Ext widgets without writing a single line of javascript code...
and it doesn't require programming skills other than XHTML.
You can create an Ext component by using the following markup:
<jxt:widget type="ext" name="Ext.FormPanel">
<jxt:cfg name="labelWidth" type="int" value="75"></jxt:cfg>
<jxt:cfg name="id" type="string" value="extform"></jxt:cfg>
<jxt:cfg name="url" type="string" value="save-form.php"></jxt:cfg>
<jxt:cfg name="frame" type="boolean" value="true"></jxt:cfg>
<jxt:cfg name="title" type="string" value="Ext FormPanel"></jxt:cfg>
<jxt:cfg name="bodyStyle" type="string" value="padding:5px 5px 0"></jxt:cfg>
<jxt:cfg name="width" type="int" value="250"></jxt:cfg>
<jxt:cfg name="defaults" type="object" value="width: 150"></jxt:cfg>
<jxt:cfg name="defaultType" type="string" value="textfield"></jxt:cfg>
<jxt:cfg name="items" type="array">
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="First Name"></jxt:cfg>
<jxt:cfg name="name" type="string" value="first"></jxt:cfg>
<jxt:cfg name="allowBlank" type="boolean" value="false"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="Last Name"></jxt:cfg>
<jxt:cfg name="name" type="string" value="last"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="fieldLabel" type="string" value="Company"></jxt:cfg>
<jxt:cfg name="name" type="string" value="company"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object" value="fieldLabel: 'Email', name: 'email', vtype: 'email'"></jxt:cfg>
<jxt:cfg type="object" jsclass="Ext.form.TimeField">
<jxt:cfg name="fieldLabel" type="string" value="Time"></jxt:cfg>
<jxt:cfg name="name" type="string" value="time"></jxt:cfg>
<jxt:cfg name="minValue" type="string" value="8:00am"></jxt:cfg>
<jxt:cfg name="maxValue" type="string" value="6:00pm"></jxt:cfg>
</jxt:cfg>
</jxt:cfg>
<jxt:cfg name="buttons" type="array">
<jxt:cfg type="object">
<jxt:cfg name="handler" type="function" value="alert('click on save!')"></jxt:cfg>
<jxt:cfg name="text" type="string" value="Save"></jxt:cfg>
</jxt:cfg>
<jxt:cfg type="object">
<jxt:cfg name="text" type="string" value="Cancel"></jxt:cfg>
<jxt:cfg name="handler" type="function" value="Ext.getCmp('extform').getForm().reset()"></jxt:cfg>
</jxt:cfg>
</jxt:cfg>
<jxt:target>
<div style="float:left; margin-right: 60px"></div>
</jxt:target>
</jxt:widget>
There are a lot of things to say about JXT, if you are interested please go on here: http://www.jxtproject.com/discover-jxt.shtml
The project is really new and at its first beta, let me know your impressions.
Thanks