Bonjour,

j'ai un Panel défini comme ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var graphe2 = new Ext.Panel({
        frame:true,
        width:980,
        height:600,
        layout:'fit',
	colspan:2,
        items: {
		xtype:'panel',
		name: 'graphe2',
		id: 'graphe2',
		autoEl:{
			tag:'div', 
			children:[{
				tag:'img'
				,src:'scripts/evecosGraphe.php?dateStart=1987-01-01&dateEnd=1988-01-01'
				}]
			}
		} 
});
ce panel contient un graphique généré par la librairie jpgraph.

j'intègre ce Panel comme item d'un FormPanel.
dans ce FormPanel, j'ai un bouton, en cliquant dessus, je voudrais modifier la propriété src du Panel.
Comment faire ?
j'ai testé:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Ext.getCmp('graphe2').src=....
mais sans succès !

Merci,
Nico