fredleput
07-13-2007, 11:56 AM
Hi,
I'm building an application for my association and i use ext library since 3 weeks only.
here is my issue :
I have 3 tabs in my main layout. the third one contains in his left panel a grid and a toolbar. when you click on an element in the grid, i create 3 new panels in the right area. these panels contain a toolbar and two forms (the second form is not visible).
http://frederic.leput.free.fr/avatar/small.jpg (http://frederic.leput.free.fr/avatar/big.jpg)
I use a template to create my form, then i render the form.
var t = new Ext.Template(
'<div class="x-box-tl">',
'<div class="x-box-tr">',
'<div class="x-box-tc">',
'</div>',
'</div>',
'</div>',
'<div class="x-box-ml">',
'<div class="x-box-mr">',
'<div class="x-box-mc">',
'<h3 style="margin-bottom:5px;">Modification</h3>',
'<div id="{id}">',
'</div>',
'</div>',
'</div>',
'</div>',
'<div class="x-box-bl">',
'<div class="x-box-br">',
'<div class="x-box-bc">',
'</div>',
'</div>',
'</div>'
);
t.append('contFormuModif', {id:'formuModif'});
formModifClient.render('formuModif');
the handler when the button "supprimer" is clicked. It suppress data from my mysql database and remove the div ('contFormuModif') which contains my template for the form. Then i recreate this div and append it into the center region of my Layout
[CODE]
// handler bouton supprimer
supprimeClient = function(e){
formIdClient.submit({
url: 'suppressionClient.php',
waitMsg: 'Suppression en cours...',
success: function(form, action){
// rafraichit liste des clients
dsListeClients.reload();
Ext.Msg.alert('Confirmation', 'Suppression effectu
I'm building an application for my association and i use ext library since 3 weeks only.
here is my issue :
I have 3 tabs in my main layout. the third one contains in his left panel a grid and a toolbar. when you click on an element in the grid, i create 3 new panels in the right area. these panels contain a toolbar and two forms (the second form is not visible).
http://frederic.leput.free.fr/avatar/small.jpg (http://frederic.leput.free.fr/avatar/big.jpg)
I use a template to create my form, then i render the form.
var t = new Ext.Template(
'<div class="x-box-tl">',
'<div class="x-box-tr">',
'<div class="x-box-tc">',
'</div>',
'</div>',
'</div>',
'<div class="x-box-ml">',
'<div class="x-box-mr">',
'<div class="x-box-mc">',
'<h3 style="margin-bottom:5px;">Modification</h3>',
'<div id="{id}">',
'</div>',
'</div>',
'</div>',
'</div>',
'<div class="x-box-bl">',
'<div class="x-box-br">',
'<div class="x-box-bc">',
'</div>',
'</div>',
'</div>'
);
t.append('contFormuModif', {id:'formuModif'});
formModifClient.render('formuModif');
the handler when the button "supprimer" is clicked. It suppress data from my mysql database and remove the div ('contFormuModif') which contains my template for the form. Then i recreate this div and append it into the center region of my Layout
[CODE]
// handler bouton supprimer
supprimeClient = function(e){
formIdClient.submit({
url: 'suppressionClient.php',
waitMsg: 'Suppression en cours...',
success: function(form, action){
// rafraichit liste des clients
dsListeClients.reload();
Ext.Msg.alert('Confirmation', 'Suppression effectu