how can I check if my form was sent, its ajax/json
function save_formular() {
  var values = $$("form_elements").getValues();
  webix.ajax().header({
    "Content-type":"application/json"
  }).post("/create", JSON.stringify(values), function() {
    document.getElementById("content").innerHTML="<div>OK!</div>";
  });
}
I'm stuck in my python method create:
def create(self):
  # i want to check first if the form was sent
  data = cherrypy.request.json # error
  # AttributeError: 'Request' object has no attribute 'json'
  return sometext
create.exposed = True
is there another easy way to get these ajax values?
 
    