Problem is, data comes from server in xml form (having more items
list), i fetched by using <os:HttpRequest > Tag, and iterated by using
repeat attribute also, but here the ${Context.Index} is shown 0 and $
{Context.Count} shown as 1.(as context.count must show value which is
more than 10 items itself, i.e have more items list in xml form).
The result is displayed as blank.
how can i list out items name list in profile view?
xml data in 'prod.txt' filename has 4 items:
<root>
<itemid="1" name="samsung"/>
<itemid="2" name="sansui"/>
<itemid="3" name="onida"/>
<itemid="4" name="lg"/>
</root>
fetching and iterating data like:
--------------------------------------------
<script xmlns:os="http://ns.opensocial.org/2008/markup" type="text/os-
data">
<os:HttpRequest key="product" href="http://www.servername.net/test/
prod.txt" authz="signed" />
</script>
<script type="text/os-template" require="product">
<ul>
<li repeat="${product}">
<span id="id${Context.Index}">product name:${cur.name}
ctx.indx:${Context.Index} count:${Context.Count} </span>
</li>
</ul>
</script>
After executing ${Context.Index} is shown 0 and ${Context.Count} shown
as 1 instead of value 4 and ${cur.name} is shown blank.This is the
prob.
so how to access xml data and display iterated array items :
samsung
sansui
onida
lg
in profile view.....page.
pls help sooner...
reg,
Arun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---