thanks for responding quickly
Code:
var tapButton = Ext.create('Ext.Button',{ text: 'some text',
handler: function(){
//this code is not relevant
}
});
var tapButtonX = Ext.create('Ext.Button',{
text: 'some text',
ui: 'decline',
handler: function(){
//this code is not relevant
}
});
var myToolBar = Ext.create('Ext.Toolbar',{
docked: 'top',
items:
[
{
text: 'Back',
ui: 'back',
handler: function(){
//the back button in the new toolbar created for my,
// delete the toolbar and the panel
me.remove(myToolBar);
me.remove(panel3);
}
},
tapButton,
tapButtonX
]
});
var panel3 = Ext.create('Ext.Panel', {
layout: 'card',
xtype: 'panel',
items:
[
{
//Here is a picture of a person
html:['<h1 style="text-align: center; "><img alt="" src="userAtPlace/'+idUser+'.jpg" style="width: 270px; height: 281px; " /></h1></body>'].join('')
}
]
});
var store = Ext.create('Ext.data.Store',{
proxy:
{
type: 'ajax',
//url: 'prueba.php',
url: '../index.php/tapatplace/addTap',
actionMethods:
{
read: 'POST'
}
}
});
//This shows the panel that I put in the image of POST,
//and the toolbar I created in the code above,
//this contains the button (back, tapButton, tapButtonX)
me.add(myToolBar, panel3);