PDA

View Full Version : Remote Data Binding: need assistance


Kaylum
11-10-2007, 02:17 PM
hello everyone

i am new to Laszlo, but sooo eager to get things going ;)

i have been playing with the remote data binding functionality (using a modified example), and find myself unable to display the data from a remote XML file from my local dev laptop (mac os x).

note:

if i pull the file down locally (using wget) and change the src and type attribute of the dataset tag, the data is displayed.

also, i am able to pull remote images using the view tag.. so i think it's something with my lsx code with the XML:

******

<canvas debug="false" height="500" width="500">

<dataset type="http" name="dset"
src="http://www.ilikebootyvideos.com/rss/test.xml"/>

<simplelayout axis="y"/>

<view datapath="dset:/rss/channel/item">
<simplelayout axis="x"/>
<text datapath="title/text()"/>
<text datapath="link/text()"/>
</view>
</canvas>

*******
any help is really welcomed :)

peace

Kaylum
11-10-2007, 02:33 PM
what's up folks.

apparently i was missing some attributes for the dataset tag:

<dataset name="dset"
request="true" type="http"
src="http://www.ilikebootyvideos.com/rss/test.xml"/>

request = true, which didn't seem to be documented.

everything works cool now..

peace