jquery / jquery/api.jquery.com
document the wire type of parameter of data of function jQuery.post()
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 325
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
What is the wire type of parameter of data of jQuery.post()?
If I pass in an object like {"n":"bar"} , what I will get in the ajax http post body? a json like '{"n":"bar"}' or a url-encoding query like "n=bar" ?
If I pass in a string like "hello world", what I will get in the ajax http post body? Direct put in http post body?
The document at https://api.jquery.com/jquery.post/ do not tell me anything about it.
notice
- I can write a web server and use the jquery.post() to try and guess what will happen, but I want know it before I write my web server logic.
- Parameter
dataTypeisThe type of data expected from the server., not the request data type. - I have found some details in https://github.com/jquery/jquery/issues/2594#issuecomment-140113401 . But it is hard to find in google and it is not all the problem.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the jQuery.post() API page linked in the issue and read the related details in jQuery issue #2594. Document what request body is produced when data is an object versus a string, including how dataType differs; the page is done when these cases are answered directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jquery
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100