1
the code below it is working, however my doubt is the following: There is some way to make a post in two different addresses simultaneously using this same code without repeating it?
For example, in the code below I insert the data in a table, but there are other fields of my page that go to another table. In this situation there is some trick that can be done in this same code or I would have to repeat it and insert the data from the other table?
$.ajax({
url:'http://localhost:8080/teste/rest/cadastro',
type:'POST',
contentType: "application/json",
data : dados,
dataType: 'JSON',
success: function(data) {
}
});
Thanks in advance!
One question, the other fields, which go to another table, some of this data depends on the other post?
– Gabriel Heguedusch
Yes, it depends on that first post.
– Lucas Borim