Oct 08, 2012, 8:31 PM
Refresh Image
Hi everybody,
I need your help.
I would like to refresh an image on click button.
When I load my page, I initialize "ImageUrl" with a value.
Here is my aspx code :
Can you help me please ?
Thx
I need your help.
I would like to refresh an image on click button.
When I load my page, I initialize "ImageUrl" with a value.
Here is my aspx code :
<ext:Image ID="MovieImage" Width="300" runat="server" />
<input type="button" onclick="setSrc()" value="Change image" />
Here is my javascript code :function setSrc() {
var image = Ext.getCmp('MovieImage');
image.setSrc(http://www.uscars-technologie.com/homologation-voitures-americaines/FORD_MUSTANG/FORD_MUSTANG.jpg);
}
This code doesn't work fine and generate this javascript error : "TypeError : image.setSrc is not a function".Can you help me please ?
Thx