Browser download dialog box
I want to open up browser dialog box when user click a button, and afaik this can be done by using a FORM tag.
开发者_如何学运维The problem is the server only accepts json data (and using the form tag it has to have a name i.e.
formdata={"key":"value"}
The server does not like this format as it expects pure JSON
{"key":"value"}
Is there a way to send JSON data using FORM tag ?Looks like you will have to build your json object by hand onClick (read out your forms input fields and place them in an object according to the json specification).
精彩评论