I am trying this code in Javascript. But its not working….
The postData is json data sent to the server to be saved.
I have checked that JSON data needs to be parsed or stringify… is that the problem..
or I am doing some other silly mistake…
I am trying this code in Javascript. But its not working…. The postData is
Share
You have handleSuccess defined twice. The second time is a no-op. Get rid of the second ‘var handleSuccess = …’ and put in a handleFailure definition.