var paisesStore = new Ext.data.JsonStore({
url: 'combos.php',
autoLoad: true,
root: 'datos',
baseParams: {
combo: 'paises'
},
fields: [
{name:'id'},
{name:'pais'}
]
})
//... aquí el código del formulario
//y en algún momento ejecutar esta linea para agregar un elemento al combo
paisesStore.add({id:5,pais:"Chile"});
It looks like you're new here. If you want to get involved, click one of these buttons!
The content of this site is copyrighted by Quizzpot.com, it is prohibited to publish our tutorials on other blogs, magazines or any other media without prior permission.
Copyright © 2012 Quizzpot.
Our visitors are mostly developers and Web designers, advertise with us, you only need to contact us .