Im trying to work out how basic callbacks work in the js liveapi. Im using the following sample code but cant even seem to get a basic callback to work. My understanding is that the way this is supposed to work, is that I give the function an id and it listens to changes on that id and will output a result if a change occurs. However, when i delete the device with the id, it doesnt output anything. Any help understanding this would be much appreciated.
input=arrayfromargs(arguments); // makes an array called "input" from the input list
post("the list contains",arguments.length, "elements"); // how many elements ( ids ) has our input list
post(input); // post the first element (id) just to check its working
var api = new Array();