BlackICE1979
8 Nov 2007, 6:06 AM
Hi There,
I've update the excellent Form Builder for the 2.0 Version of Extjs. Hope you'll enjoy it!
[CODE]/*
* Building a basic form :
//Prepare the form
var remoteForm = new Ext.ux.FormBuilder({url:'/task/ajaxform', params:{taskid:selectedId}});
//Some Function to handle the problem
var badDataPopup = function(f) {
console.log('Bad Data: %o', f);
Ext.MessageBox.alert('Bad Data', 'Unable to create form. Check your firebug console, cowboy!');
}
//Some Function to handle the submit that are successful
var submitsuccess = function(f){
window.hide();
}
//Some Function to handle the submit that has failed
var submitfailed = function(f){
Ext.MessageBox.alert('Error Message', action.result.errorInfo);
}
//A function to put the panel in a window (Desktop example)
//Note: The formPanel is passed as an argument on the 'validform' event.
//The formPanel is also returned as shown below.
var createWindow = function(formPanel){
window = new Ext.Window({
title: 'Compl
I've update the excellent Form Builder for the 2.0 Version of Extjs. Hope you'll enjoy it!
[CODE]/*
* Building a basic form :
//Prepare the form
var remoteForm = new Ext.ux.FormBuilder({url:'/task/ajaxform', params:{taskid:selectedId}});
//Some Function to handle the problem
var badDataPopup = function(f) {
console.log('Bad Data: %o', f);
Ext.MessageBox.alert('Bad Data', 'Unable to create form. Check your firebug console, cowboy!');
}
//Some Function to handle the submit that are successful
var submitsuccess = function(f){
window.hide();
}
//Some Function to handle the submit that has failed
var submitfailed = function(f){
Ext.MessageBox.alert('Error Message', action.result.errorInfo);
}
//A function to put the panel in a window (Desktop example)
//Note: The formPanel is passed as an argument on the 'validform' event.
//The formPanel is also returned as shown below.
var createWindow = function(formPanel){
window = new Ext.Window({
title: 'Compl