I'm new with XUL and try to reload an XML Template but it doesn't work.
The documentation is quite poor.
my XUL File:
Code: Select all
<listbox flex="1" id="list12" datasources="http://10.0.0.4:2020/abfrage/neu/test.php?id=2" ref="*" querytype="xml">
<template>
<query/>
<action>
<listitem onclick="a(this.value)" uri="?" label="?IAR_NAME" value="?IAR_ARTNR"/>
</action>
</template>
</listbox>
my JS File:
Code: Select all
function a(ab) {
document.getElementById('thelist').appendItem(ab, "thu"+ab);
alert("bla");
document.getElementById('list12').reload();
}