View Full Version : ondatacomplete?
whisperstorm
10-24-2003, 05:26 PM
is there a way to know when the data for some dataset has completed "downloading"? I want to for instance hide a resource until it's data has been downloaded and it's properties updated - say an image fetched from the net. Like say an ondatacomplete event?
antun
10-27-2003, 08:01 AM
I don't think there's an ondatacomplete event per se, but usually I set up a datapointer to some spot in the dataset, and use that datapointer's ondata event, to achieve the same effect:
<canvas debug="true">
<dataset name="foo" src="foo.xml" type="http" autorequest="false" />
<datapointer xpath="foo:/">
<method event="ondata">
debug.write( "Data of foo has completed" );
</method>
</datapointer>
<simplelayout axis="y" spacing="10" />
<button>Make Request
<method event="onclick">
foo.doRequest();
</method>
</button>
<text datapath="foo:/foo/@val" width="100" />
</canvas>
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.