получилось,изменил код на такой:
Ext.onReady(function(){
Ext.QuickTips.init();
var genres = new Ext.data.JsonStore({
url:'submit.php',
root:'rows',
fields:['id','genre_name'],
autoLoad:true
});
var movie_form = new Ext.form.FormPanel({
url:'submit.php',
renderTo:document.body,
frame:true,
title:'Movie Information Form',
width:550,
items:[{
xtype:'combo',
name:'genre',
fieldLabel:'Genre',
mode:'local',
store:genres,
displayField:'genre_name',
width:120
}]
});
});
|