You might ask a more direct question given the code you have on the
ground.. but if the problem is onclick behaviour, what should be said
is that you are trying to (re)load a dataset that has been bound to a
view, which is how Laszlo works with data (XML from the server!) in
the common cases.
Useful code snippet:
<canvas>
<dataset name="sqldata" src="http://give/me/some/xml/please"/>
<view datapath="sqldata:/somexmlelement"/>
<text text="$path{'text()'}"/>
</view>
<button text="reload" onclick="canvas.datasets.sqldata.doRequest();"/>
</canvas>
In the case of "making" a window: While it's possible to dynamically
make one, what i think you want to do to begin with is declare a
window element in LZX that has visibility=false and only show it
when it's needed. Dynamics are quite possible but probably step 2 or
3.. do you think?
Pretty helpful list here, but you'd have to post some code, working
or not, to get a better answer. Best,
.j.