Question: Can someone help with this code? I am having trouble with these. // update_observations - retrieve the latest list of observations // from the server
Can someone help with this code? I am having trouble with these.
// update_observations - retrieve the latest list of observations // from the server API // when the request is resolved, creates a "modelUpdated" event // with the model as the event detail update_observations: function() { }, // update_users - retrieve the latest list of users // from the server API // when the request is resolved, creates a "modelUpdated" event // with the model as the event detail update_users: function() { }, // add_observation - add a new observation by submitting a request // to the server API // formdata is a FormData object containing all fields in the observation object // when the request is resolved, creates an "observationAdded" event // with the response from the server as the detail add_observation: function(formdata) { },
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
