nari422
01-23-2009, 10:57 PM
Hi Guys,
I am getting problem with store image for dynamically created view. I have one view called diVw2. For that view i created dynamically one view and add the text and image to that dynamic view .Text added successfully but image not added. I am getting the problem call to undefined method image.
<canvas ondata="canvas.forimages()">
<view id="diVw2" />
<method name="forimages">
sampleimage ="C:\temp\images\fish.jpg" ;
var dynamicView=new lz.view(diVw2,{x:5,y:35,width:515,height:100,bgcol or:'#D74B28',clip:true });
var sampleitem1 =new lz.text(dynamicView,{x:3,text:'Item Name',fgcolor:white});
I am getting problem with store image for dynamically created view. I have one view called diVw2. For that view i created dynamically one view and add the text and image to that dynamic view .Text added successfully but image not added. I am getting the problem call to undefined method image.
<canvas ondata="canvas.forimages()">
<view id="diVw2" />
<method name="forimages">
sampleimage ="C:\temp\images\fish.jpg" ;
var dynamicView=new lz.view(diVw2,{x:5,y:35,width:515,height:100,bgcol or:'#D74B28',clip:true });
var sampleitem1 =new lz.text(dynamicView,{x:3,text:'Item Name',fgcolor:white});