Hi Teo,
have one more pro, ple have a look on below code,
for ( i=0 ; i < itemtransList.length ; i++ ){
var item = trackList.appendElement("<item name=\""+i+"\"
/>");
var img = item.appendElement("<img />");
img.src = "stock_images\icon_incomplete.png";
img.onclick = item_onClick(ItemArray[i]);
var label = item.appendElement("<label />");
label.x=15;
label.valign="middle";
label.wordwrap = 'True';
label.align="left"
label.innerText = ItemArray[i];
//view.alert("Post : "+ItemArray[i]);
label.tooltip = ItemArray[i];
}
img.onclick = item_onClick(ItemArray[i]) is executed when appending the img
and label, but then after loading the view, onclick event is not working, is
there any thing wrong in the code, please help....
mohan
On Tue, Sep 9, 2008 at 11:25 AM, mohan prasad
<[EMAIL PROTECTED]>wrote:
> Good catch Teo, Thanks again.
>
>
> On Mon, Sep 8, 2008 at 10:31 PM, Teo <[EMAIL PROTECTED]> wrote:
>
>> Are you sure the path is correct?
>> Try with / instead of \ if it doesn't work.
>>
>> Thanks,
>> Teo
>>
>> On Mon, Sep 8, 2008 at 2:01 PM, mohan prasad <[EMAIL PROTECTED]
>> > wrote:
>>
>>> but don't know why im not able to see the image in the view, is the above
>>> code correct?
>>>
>>>
>>>
>>> On Wed, Sep 3, 2008 at 3:11 PM, Teo [API Guru] <[EMAIL PROTECTED]>wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> according to the API reference you can do this.
>>>>
>>>> Thanks,
>>>> Teo
>>>>
>>>> On Sep 1, 2:47 pm, "mohan prasad" <[EMAIL PROTECTED]> wrote:
>>>> > Hi,
>>>> >
>>>> > Is it possible to append an image to an item?
>>>> >
>>>> > var item = trackList.appendElement("<item
>>>> name=\""+i+"\"
>>>> > />");
>>>> > var img = item.appendElement("<img />");
>>>> > img.src = "stock_images\icon_incomplete.png";
>>>> > var label = item.appendElement("<label />");
>>>> > label.x=15;
>>>> >
>>>> > thanks,
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Teo (a.k.a. Teodor Filimon, Teominator)
>> Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
>> GMT +2 (or PDT +10)
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---