uppal
04-20-2006, 06:02 PM
Hi
I'm creating a dynamic text view using new LzText(parentviewname);
& I want to make the each view respond with its identity on click ..
so I have a onclick method defined in the
-----------------------------------------------
<view name="parentviewname">
<method event="onclick">
Debug.write("index " , this.subviews);
for(var i=0; i < this.subviews.length; i++)
{
Debug.write("subview: " + this.subviews[i].getText());
}
</method>
<view>
------------------------------------------------
the problem is each & every time when i click on the newly created text item, the onclick ,ehod is called.... but how can i detect that what text item is clicked ? say out of 20 such texts...
thanks
Uppal
I'm creating a dynamic text view using new LzText(parentviewname);
& I want to make the each view respond with its identity on click ..
so I have a onclick method defined in the
-----------------------------------------------
<view name="parentviewname">
<method event="onclick">
Debug.write("index " , this.subviews);
for(var i=0; i < this.subviews.length; i++)
{
Debug.write("subview: " + this.subviews[i].getText());
}
</method>
<view>
------------------------------------------------
the problem is each & every time when i click on the newly created text item, the onclick ,ehod is called.... but how can i detect that what text item is clicked ? say out of 20 such texts...
thanks
Uppal