datasets.lzx
<library>
<dataset name="weepeeDS" src="http://vapi0.weepee.org/api/weepee.php" request="false" type="http"/>
<datapointer id="myDpInit" xpath="weepeeDS:/weepee">
<handler name="ondata">
Debug.write("Loaded Default XML data");
loading.setAttribute('visible',false);
canvas.logindialog.open();
</handler>
</datapointer>
<dataset name="loginDS" src="http://vapi0.weepee.org/api/mobiletool/login.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer id="myDpLogin" xpath="loginDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.loginDS;
Debug.write("Loaded Login XML data");
var dp = ds.getPointer();
dp.setXPath("loginDS:/dbdata/data/error/text()");
var autherror = dp.getNodeText();
dp.setXPath("loginDS:/dbdata/data/sid/text()");
var sid = dp.getNodeText();
if (sid == "0") {
failedlogin.completeInstantiation();
failedlogin.setAttribute('visible',true);
loginerror.setAttribute('text',autherror);
canvas.logindialog.open();
} else {
canvas.sid = sid;
failedlogin.setAttribute('visible',false);
weepeeinit.setAttribute('visible',false);
canvas.logindialog.close();
loading.completeInstantiation();
loading.setAttribute('visible',true);
mobiletooldefault.load();
canvas.getData();
}
</handler>
</datapointer>
<dataset name="pendingDS" src="http://vapi0.weepee.org/api/mobiletool/pending.php" onerror="canvas.handleError()" querytype="POST"/>
<datapointer id="myDpPending" xpath="pendingDS:/dbdata">
<handler name="ondata">
Debug.write("Loaded pending mobile XML data");
</handler>
</datapointer>
<dataset name="requestsimDS" src="http://vapi0.weepee.org/api/mobiletool/requestsim.php" transfer="false" type="http" querytype="POST"/>
<datapointer xpath="requestsimDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.requestsimDS;
var dp = ds.getPointer();
dp.setXPath("requestsimDS:/dbdata/data/proceed/text()");
var proceed = dp.getNodeText();
dp.setXPath("requestsimDS:/dbdata/data/url/text()");
var url = dp.getNodeText();
if (proceed == 1) {
lz.Browser.loadURL(url, "_blank");
}
</handler>
</datapointer>
</library>
Cross References
Named Instances