0

syntax problem for opensocial template

I want to know, what is the syntax for accessing a variable in another script by a templated script
for example

if I have

<script type="text/javascrpt">
var dummy="hello world";
</script>

How do I make it where

<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/markup">
<os:HttpRequest key="yql1" href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20flickr.photos.recent&format=json"/>
</script>

can turn into this

<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/markup">
<os:HttpRequest key="yql1" href=dummy/>
</script>

<script type="text/os-template" require="yql1">
<ul>
<li repeat="${yql1.content.query.results.photo}">
<span id="id${Context.Index}">${Cur.title}</span>
</li>
</ul>
<div><p>${yql1}
</p>
</div>
</script>

by
0 Replies

Recent Posts

in YAP