mt1,

Your code does work. Try writing Debug.write( ds ) instead of ds.serialize() and you' ll see that the dataset is properly created. The problem is serialize, which generally doesn't show dynamically modified data.

M.

mt1 wrote:
All,
This is a simple question.
In the following code, the creating dataset is ok, but it dose not
read the 'src' file. The serialize() show only '<ds/>'.

<canvas debug="true">
<method event="oninit">
var ds = new LzDataset( null, { name: 'ds',
src: 'sample.xml',
request: 'true' } );
Debug.write( ds.serialize() );
</method>
</canvas>

I am understanding, if the 'request' attribute set 'true', it can set
the data of the 'src' automatically.
Dose it wrong?

mt1
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to