PDA

View Full Version : absolute layout browser



adfued90
12 Feb 2013, 9:11 AM
hai i`m new on ext js , i`m try using absolute layout browser ,but i`m stuck to load php on js file , can anyone show some example , sorry if my english not so good .

function getCombinationLayouts() {



return {




start: {
id: 'start-panel',
title: 'Start Page',
layout: 'fit',
bodyStyle: 'padding:25px',
contentEl: 'start-div' // pull existing content from the page
},


absoluteForm: {
title: 'Premise Information',
id: 'abs-form-panel',
layout: 'fit',
bodyPadding: 15,
items: {
title: 'Premise',
layout: 'fit',
frame: true,
items: {
xtype: 'form',
layout:'absolute',
url:'save-form.php',
padding: '5 5 0 5',
border: false,
cls: 'absolute-form-panel-body',

defaultType: 'textfield',
items: [{
x: 0,
y: 5,
xtype: 'label',
text: 'From:'
},{
x: 55,
y: 0,
name: 'from',
//hideLabel: true,
anchor:'100%' // anchor width by %
}]
}


}
}

};
}

mitchellsimoens
14 Feb 2013, 7:03 AM
You want to load data from a PHP file using ajax?