jimhsu
03-31-2005, 02:12 PM
I'm trying to have my compiled Laszlo SWF file load a dynamic XML dataset. Thus far, it either displays the data that was already baked in during compile, or it hangs (probably on a request).
Is there any way to load an XML dataset from a SWF? I'm wondering if JavaScript would work.
p.s. This works great with an LPS. However, I'd like to know if LPS is absolutely necessary.
Here is a simple test case:
<canvas>
<dataset name="dset" src="phonebook.xml"/>
<simplelayout axis="y"/>
<view datapath="dset:/phonebook/employee">
<simplelayout axis="x"/>
<text datapath="firstName/text()"/>
<text datapath="lastName/text()"/>
<text datapath="phone/text()"/>
</view>
<button>Reload
<method event="onclick">
dset.doRequest();
</method>
</button>
</canvas>
Is there any way to load an XML dataset from a SWF? I'm wondering if JavaScript would work.
p.s. This works great with an LPS. However, I'd like to know if LPS is absolutely necessary.
Here is a simple test case:
<canvas>
<dataset name="dset" src="phonebook.xml"/>
<simplelayout axis="y"/>
<view datapath="dset:/phonebook/employee">
<simplelayout axis="x"/>
<text datapath="firstName/text()"/>
<text datapath="lastName/text()"/>
<text datapath="phone/text()"/>
</view>
<button>Reload
<method event="onclick">
dset.doRequest();
</method>
</button>
</canvas>