You can easily set the URL for a dataset and issue a new request.

For example a post request on dataset ds would be

            ds.setSrc(url);
                ds.setQueryType('POST');
ds.doRequest();



On 10/4/06, William Krick <[EMAIL PROTECTED]> wrote:
Is it possible to dynamically load XML files into a dataset at runtime?

This example illustrates what I'm trying to do.
The attached zip includes this example and three required XML data files.


<canvas layout="axis:y">

  <dataset name="ds1" src="">  <dataset name="ds2"/>

  <combobox editable="false">
    <textlistitem datapath="ds1:/files/file"
                  text="$path{'text()'}" value="$path{'@value'}" />
    <handler name="onselect">
      Debug.write("setting src on ds2 to: " + this.value);
       ds2.setAttribute('src', this.value);
    </handler>
  </combobox>

  <view datapath="ds2:/phonebook/employee">
    <simplelayout axis="x"/>
    <text datapath="firstName/text()"/>
    <text datapath="lastName/text()"/>
    <text datapath="phone/text()"/>
  </view>

</canvas>





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






--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

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

Reply via email to