How do I make this call back work? I have read the documents but I just cant figure it out for some reason?
var ref = new Firebase(\"https://xxx.firebasei
Your second call to update() raises this error in the JavaScript console:
Uncaught Error: Firebase.update failed: First argument must be an object containing the children to replace.(…)
The first argument to update has to be an object, so:
blast.update({ update: "I'm writing data" }, function(error) {
if (error) {
alert("Data could not be saved." + error);
} else {
alert("Data saved successfully.");
}
});
For reference, this is the documentation for the update() function.