heybluez
03-04-2005, 08:27 AM
Hello.
I decided to try to build a simple app with Laszlo last in order to see what this is about.
Anyway, I decided to build a simple RSS Aggregator. I am successful at getting the information and looping a view with dataset but I cannot figure out how to make links with the "link" element of the RSS Feed. I tried setting a non-visible text field in the view but it just seems to pick up the last element's value...etc.etc.
Anyone know what I can do to make this work?
Here is the Code:
<canvas height="500" >
<!-- For the Recycle Button -->
<resource name="recyclebuttonpic">
<frame src="../images/Recycle.gif" />
<frame src="../images/Recycle.gif" />
<frame src="../images/Recycle.gif" />
</resource>
<resource name="viewbutton">
<frame src="../images/BoxFinal.gif" />
<frame src="../images/BoxOver.gif" />
<frame src="../images/BoxDown.gif" />
</resource>
<!-- lets grab the RSS Feed -->
<dataset name="ds"
type="http"
src="http://www.willowtreeinteractive.com/rss/rsscompiled/showRSSFeed.php?fcat_id=7&state_id=52"
request="true" >
</dataset>
<view resource="../images/BackDrop.gif">
<view>
<basebutton x="228" y="4" resource="recyclebuttonpic" />
</view>
<view x="3" y="28">
<basebutton resource="viewbutton"
datapath="ds:/RDF/item[1-5]" stretches="both" >
<text y="10" x="10" datapath="date/text()" width="128" />
<text y="36" x="10" multiline="true" datapath="title/text()" width="220" >
<method event="ontext">
this.setAttribute("fontstyle","bold");
</method>
</text>
<text id="theLink" visible="false" datapath="link/text()" />
<method event="onmouseup">
Debug.Write("Michael");
Debug.Write(theLink.toString());
</method>
</basebutton>
<simplelayout axis="y" spacing="-6"/>
</view>
</view>
</canvas>
I decided to try to build a simple app with Laszlo last in order to see what this is about.
Anyway, I decided to build a simple RSS Aggregator. I am successful at getting the information and looping a view with dataset but I cannot figure out how to make links with the "link" element of the RSS Feed. I tried setting a non-visible text field in the view but it just seems to pick up the last element's value...etc.etc.
Anyone know what I can do to make this work?
Here is the Code:
<canvas height="500" >
<!-- For the Recycle Button -->
<resource name="recyclebuttonpic">
<frame src="../images/Recycle.gif" />
<frame src="../images/Recycle.gif" />
<frame src="../images/Recycle.gif" />
</resource>
<resource name="viewbutton">
<frame src="../images/BoxFinal.gif" />
<frame src="../images/BoxOver.gif" />
<frame src="../images/BoxDown.gif" />
</resource>
<!-- lets grab the RSS Feed -->
<dataset name="ds"
type="http"
src="http://www.willowtreeinteractive.com/rss/rsscompiled/showRSSFeed.php?fcat_id=7&state_id=52"
request="true" >
</dataset>
<view resource="../images/BackDrop.gif">
<view>
<basebutton x="228" y="4" resource="recyclebuttonpic" />
</view>
<view x="3" y="28">
<basebutton resource="viewbutton"
datapath="ds:/RDF/item[1-5]" stretches="both" >
<text y="10" x="10" datapath="date/text()" width="128" />
<text y="36" x="10" multiline="true" datapath="title/text()" width="220" >
<method event="ontext">
this.setAttribute("fontstyle","bold");
</method>
</text>
<text id="theLink" visible="false" datapath="link/text()" />
<method event="onmouseup">
Debug.Write("Michael");
Debug.Write(theLink.toString());
</method>
</basebutton>
<simplelayout axis="y" spacing="-6"/>
</view>
</view>
</canvas>