Hi
The mailing list has an example of List and an explanation of the
algorithm. It was very useful . I have some doubts regarding its usage.
I have the following html
<div id="featured-products_block_center" class="block products_block">
<h4>featured products</h4>
<div class="block_content">
<ul>
<li>
<h5><a href="" title="">xxx</a></h5>
<p class="product_desc">
<a href=".." title="More">...</a>
</p>
<a href="..." title=".." class="product_image"><img
src="..." alt="..." height="129" width="129" /></a>
<p>
<span class="price">...<br />
<span style="font-size:xx-small">(taxes
extra)</span></span>
<a class="button" href="..." title="View">View</a>
<a class="..." rel="..." href="..." title="Add to cart">Add to
cart</a>
</p>
</li>
</ul>
</div>
</div>
That is a list with ul and a separator as li .
I defined my template to be something like
ui.Container(uid: "featuredproducts", clocator: [id:
"featured-products_block_center", tag: "div"], group: "true") {
ui.List(uid: "list", clocator: [tag: "ul"], separator: "li") {
UrlLink(uid: "all", clocator: [text: "View", class:
"button", title: "View"])
UrlLink(uid: "all", clocator: [title: "Add to cart"])
}
}
and the access
was like
* click featuredproducts.list[1][1] *
and I got a number format exception
I tried
click featuredproducts.list[1] and I got no error but this does not
link on the link titled View
My question :
How do I access the element titled View
using a List template
Thanks
Regards
Hari
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---