Thanks Jian.. will test it and let you know.

Manoj


>
>From: Jian Fang <[email protected]>
>To: [email protected]
>Sent: Monday, July 20, 2009 2:04:41 PM
>Subject: Re: getAttribute() question.
>
>>I added a general method
>
>def getParentAttribute(String uid, String attribute)
>
>to get back the parent attribute for any UI element. In your case 
>
>getParentAttribute("rotator.tnails[6]", "class") 
>
>should return the separator attribute. This method should be able to be used 
>for any other UI elements as well.
>I haven't tested it, please check out the new 0.7.0 core artifact from our 
>Maven repo and help us to test if it works
>>for you. Please let me know the result.
>
>Thanks,
>
>Jian
>
>
>On Mon, Jul 20, 2009 at 4:45 PM, Jian Fang <[email protected]> wrote:
>
>Usually, "rotator.tnails[6]" refers to the List element, not the separator. I 
>will a new method for you to access
>>>>the attribute for the List separator tonight. Will let you know after I 
>>>>check in the code.
>>
>>>>Thanks,
>>
>>Jian
>>
>>
>>
>>On Mon, Jul 20, 2009 at 3:49 PM, Manoj Chavan <[email protected]> wrote:
>>
>>
>>>>>>My Source:
>>>
>>>>>><div class="thumbnails">
>>>>>><ul>
>>>>>><li class="thumbnail">
>>>>>><img alt="Dan Henderson Ruins UFC's Hopes For UFC 105 and Michael 
>>>>>>Bisping" 
>>>>>>src="/images_root/image_pictures/0518/0180/127482_crop_85x60.jpg"/>
>>>>>></li>
>>>>>><li class="thumbnail">
>>>>>><img alt="Underdog Sports: Best Pro Women Athletes Today No. 10-6" 
>>>>>>src="/images_root/image_pictures/0517/9892/98173_crop_85x60.jpg"/>
>>>>>></li>
>>>>>><li class="thumbnail">
>>>>>><img alt="The Chicago Cubs: My First MLB Game Pt.2; The Magic Of Hatfeild 
>>>>>>Hotdogs!" 
>>>>>>src="/images_root/image_pictures/0517/9210/100722_crop_85x60.jpg"/>
>>>>>></li>
>>>>>><li class="thumbnail">
>>>>>></li>
>>>>>><li class="thumbnail active">
>>>>>><img alt="Boston Red Sox Weekly Recap (Week 15)" 
>>>>>>src="/images_root/image_pictures/0518/0204/6839_crop_85x60.jpg"/>
>>>>>></li>
>>>>>><li class="thumbnail potd">
>>>>>><div class="potd-icon png-fix"/>
>>>>>><img alt="Browns Fans Want To See More Of Jerome Harrison, You're Getting 
>>>>>>Your Wish" 
>>>>>>src="/images_root/image_pictures/0517/9916/111034_crop_85x60.jpg"/>
>>>>>></li>
>>>>>></ul>
>>>>>></div>
>>>
>>>
>>>>>>// My Module Def:
>>>>>>         ui.Container(uid:"rotator", 
>>>>>> clocator:[tag:"div",class:"thumbnails"]){
>>>>>>             List(uid: "tnails", clocator: [tag: "ul"], separator: "li"){
>>>>>>                 UrlLink(uid: "all", clocator: [:])
>>>>>>             }
>>>>>>         }
>>>
>>>
>>>
>>>>>>I want to get the attribute of the [6] element.
>>>
>>>>>>getAttribute("rotator.tnails[6]", "class")   gives me no element exception
>>>
>>>>>>How do I define the module so that I get back the string "thumbnail potd"
>>>
>>>>>>Any help pointer appreciated. Thank you.
>>>
>>>>>>Manoj
>>>
>>>
>>>
>>>
>>>
>>
>
>>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" 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/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to