{"json_modified": "2016-10-19T14:32:01.689151", "uuid": "b5775611-e805-4230-a777-e8065bef6ffa", "title": "Sending forms through JavaScript", "url": "/en-US/docs/Web/Guide/HTML/Forms/Sending_forms_through_JavaScript", "tags": ["Guide", "Advanced", "Forms", "Web", "Example", "JavaScript", "HTML"], "translations": [{"uuid": "766ac4e5-acf8-48a1-a61c-bf7c45ebc9b4", "title": "JavaScript \u306b\u3088\u308b\u30d5\u30a9\u30fc\u30e0\u306e\u9001\u4fe1", "url": "/ja/docs/Web/Guide/HTML/Forms/Sending_forms_through_JavaScript", "tags": ["Guide", "Advanced", "Forms", "Web", "Example", "JavaScript", "HTML"], "summary": "\u4ee5\u524d\u306e\u8a18\u4e8b\u3067\u793a\u3057\u305f\u3068\u304a\u308a\u3001HTML \u30d5\u30a9\u30fc\u30e0\u306f HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5ba3\u8a00\u7684\u306a\u65b9\u6cd5\u3067\u8a2d\u5b9a\u3059\u308b\u306e\u306b\u4fbf\u5229\u3067\u3059\u3002\u3057\u304b\u3057\u591a\u304f\u306e\u5834\u5408\u3001\u30d5\u30a9\u30fc\u30e0\u306f JavaScript \u3092\u4f7f\u7528\u3057\u305f HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8a2d\u5b9a\u3067\u3082\u6709\u7528\u306b\u306a\u308a\u5f97\u307e\u3059\u3002\u3053\u308c\u3092\u6271\u3046\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u672c\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-01-12T05:19:57", "review_tags": []}, {"uuid": "a75f53c0-f204-483e-8a05-d53c7d917de8", "title": "\u4f7f\u7528JavaScript\u53d1\u9001\u8868\u5355", "url": "/zh-CN/docs/Web/Guide/HTML/Forms/Sending_forms_through_JavaScript", "tags": [], "summary": "\u6b63\u5982\u6211\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d\u8bb2\u5230\u7684,\u7528\u6237\u586b\u5199HTML\u8868\u5355\u5e76\u53d1\u9001\u7684\u8fc7\u7a0b,\u5b9e\u9645\u4e0a\u5c31\u662f\u7528\u6237\u4ee5\u4e00\u79cd\u66f4\u76f4\u89c2\u7684\u65b9\u5f0f\u914d\u7f6e\u4e00\u4e2aHTTP\u8bf7\u6c42\u5e76\u53d1\u9001\u7684\u8fc7\u7a0b.\u4f46\u5728\u4e00\u4e9b\u60c5\u51b5\u4e0b,\u6211\u4eec\u9700\u8981\u4e0d\u4f9d\u8d56\u8868\u5355\u4ec5\u7528JavaScript\u6765\u53d1\u9001\u8fd9\u6837\u7684HTTP\u8bf7\u6c42.\u4e0b\u9762\u8bb2\u51e0\u79cd\u5b9e\u73b0\u8be5\u9700\u6c42\u7684\u529e\u6cd5,\u8ba9\u6211\u4eec\u770b\u770b.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-04-30T02:51:04", "review_tags": []}], "modified": "2016-10-19T14:32:01", "label": "Sending forms through JavaScript", "localization_tags": [], "locale": "en-US", "id": 59151, "last_edit": "2016-10-19T14:31:55", "summary": "As shown in a previous article, an HTML form is a convenient way to set up an HTTP request in a declarative way. But in many cases, forms can also be useful for setting up an HTTP request using just JavaScript code. There are several ways to handle this; this article will explore them.", "sections": [{"id": "A_form_is_not_always_a_form", "title": "A form is not always a form"}, {"id": "Gaining_control_of_the_global_interface", "title": "Gaining control of the global interface"}, {"id": "How_is_it_different", "title": "How is it different?"}, {"id": "Sending_form_data", "title": "Sending form data"}, {"id": "Building_a_DOM_in_a_hidden_iframe", "title": "Building a DOM in a hidden iframe"}, {"id": "Building_an_XMLHttpRequest_manually", "title": "Building an XMLHttpRequest manually"}, {"id": "Using_XMLHttpRequest_and_the_FormData_object", "title": "Using XMLHttpRequest and the FormData object"}, {"id": "Using_a_standalone_FormData_object", "title": "Using a standalone FormData object"}, {"id": "Using_FormData_bound_to_a_form_element", "title": "Using FormData bound to a form element"}, {"id": "Dealing_with_binary_data", "title": "Dealing with binary data"}, {"id": "Conclusion", "title": "Conclusion"}], "slug": "Web/Guide/HTML/Forms/Sending_forms_through_JavaScript", "review_tags": []}