Can you handle the Submit form Event with jquery to change the values sent to the server?

Asked

Viewed 45 times

1

I have a java server that receives an object including other objects inside the object. I wonder if you can change the Submit in such a way that you can change the structure allowing you to put a json object in the form:

{
    data1:"asdasda",
    data2:{
        data1:"dasdasd",
        data2:"asdasdasda",
        data3:"dasdasd"
    },
    data3:{
        data1:"asdasdas",
        data2:"asdasdasd",
        data3:"asdasdasd"
    }
}

The example is kind of simple. but the object to be sent has many fields that I didn’t want to explicitly explain pq follows this pattern. But if it is not clear. I can elaborate a clearer example of the object or structure.

The problem that on the server we receive an object like this. and on the client has an html form. I wanted the form to contain the data but could not.

  • It is possible yes.

  • How can I do this?

  • Your question is not clear. The object you are sending is also json or you want to fit a json inside the sending object?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.