From b7f45faaa21bfa24723b6eb0425e6b4b2578f6f9 Mon Sep 17 00:00:00 2001 From: wbamberg Date: Mon, 6 Nov 2023 21:10:43 -0800 Subject: [PATCH] Fix links for moved pages --- files/en-us/glossary/synchronous/index.md | 2 +- files/en-us/glossary/xmlhttprequest/index.md | 2 +- files/en-us/mozilla/firefox/releases/11/index.md | 2 +- files/en-us/mozilla/firefox/releases/3.5/index.md | 2 +- files/en-us/mozilla/firefox/releases/39/index.md | 4 ++-- files/en-us/mozilla/firefox/releases/4/index.md | 2 +- files/en-us/mozilla/firefox/releases/5/index.md | 2 +- files/en-us/mozilla/firefox/releases/9/index.md | 4 ++-- files/en-us/web/api/document/lastmodified/index.md | 2 +- .../using_files_from_web_applications/index.md | 2 +- .../en-us/web/api/formdataevent/formdata/index.md | 4 ++-- files/en-us/web/api/history_api/example/index.md | 2 +- files/en-us/web/api/xmlhttprequest/abort/index.md | 2 +- .../web/api/xmlhttprequest/abort_event/index.md | 2 +- .../web/api/xmlhttprequest/error_event/index.md | 2 +- .../xmlhttprequest/getallresponseheaders/index.md | 2 +- .../api/xmlhttprequest/getresponseheader/index.md | 2 +- files/en-us/web/api/xmlhttprequest/index.md | 6 ++++-- .../web/api/xmlhttprequest/load_event/index.md | 2 +- .../web/api/xmlhttprequest/loadend_event/index.md | 2 +- .../api/xmlhttprequest/loadstart_event/index.md | 2 +- files/en-us/web/api/xmlhttprequest/open/index.md | 2 +- .../api/xmlhttprequest/overridemimetype/index.md | 2 +- .../web/api/xmlhttprequest/progress_event/index.md | 2 +- .../en-us/web/api/xmlhttprequest/response/index.md | 2 +- .../web/api/xmlhttprequest/responsetype/index.md | 6 +++--- files/en-us/web/api/xmlhttprequest/send/index.md | 4 ++-- .../api/xmlhttprequest/setrequestheader/index.md | 4 ++-- .../en-us/web/api/xmlhttprequest/timeout/index.md | 2 +- files/en-us/web/api/xmlhttprequest/upload/index.md | 2 +- .../web/api/xmlhttprequest/xmlhttprequest/index.md | 6 ++---- .../html_in_xmlhttprequest/index.md | 4 ++-- .../synchronous_and_asynchronous_requests/index.md | 2 +- .../using_formdata_objects/index.md | 2 +- .../using_xmlhttprequest/index.md | 10 +++++----- .../xmlhttprequestupload/progress_event/index.md | 2 +- files/en-us/web/guide/ajax/index.md | 14 +++++++------- 37 files changed, 59 insertions(+), 59 deletions(-) diff --git a/files/en-us/glossary/synchronous/index.md b/files/en-us/glossary/synchronous/index.md index 9c4759ab1c3eb34..cc285b89fc95cd6 100644 --- a/files/en-us/glossary/synchronous/index.md +++ b/files/en-us/glossary/synchronous/index.md @@ -15,4 +15,4 @@ Many programming commands are also synchronous — for example when you type in ## See also - {{glossary("Asynchronous")}} -- [Synchronous and asynchronous requests](/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests) using the [XMLHttpRequest()](/en-US/docs/Web/API/XMLHttpRequest) {{glossary("API")}} +- [Synchronous and asynchronous requests](/en-US/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests) using the [XMLHttpRequest()](/en-US/docs/Web/API/XMLHttpRequest) {{glossary("API")}} diff --git a/files/en-us/glossary/xmlhttprequest/index.md b/files/en-us/glossary/xmlhttprequest/index.md index bc7844a7a8c68b0..2b4071a6d874c41 100644 --- a/files/en-us/glossary/xmlhttprequest/index.md +++ b/files/en-us/glossary/xmlhttprequest/index.md @@ -13,4 +13,4 @@ page-type: glossary-definition - [XMLHttpRequest](https://en.wikipedia.org/wiki/XMLHttpRequest) on Wikipedia - [Synchronous vs. Asynchronous Communications](https://peoplesofttutorial.com/difference-between-synchronous-and-asynchronous-messaging/) - The {{domxref("XMLHttpRequest")}} object -- The [documentation on MDN about how to use XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- The [documentation on MDN about how to use XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) diff --git a/files/en-us/mozilla/firefox/releases/11/index.md b/files/en-us/mozilla/firefox/releases/11/index.md index b88b2202e112789..12d3ff77aec838b 100644 --- a/files/en-us/mozilla/firefox/releases/11/index.md +++ b/files/en-us/mozilla/firefox/releases/11/index.md @@ -17,7 +17,7 @@ Firefox 11 shipped on March 13, 2012. This article provides information about th ### DOM - The {{domxref("element.outerHTML")}} property is now supported on HTML elements. -- [`XMLHttpRequest` supports HTML parsing](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest). +- [`XMLHttpRequest` supports HTML parsing](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest). - Removed support for using the {{domxref("XMLHttpRequest")}} `responseType` and `withCredentials` attributes when performing synchronous requests. Attempting to do so throws an `NS_ERROR_DOM_INVALID_ACCESS_ERR` exception. This change has been proposed to the W3C for standardization. - The new {{domxref("window.navigator.mozVibrate()")}} method lets you vibrate the device where supported; this is implemented as `mozVibrate()` on Gecko. - {{domxref("window.navigator.mozApps")}} returns an [`Apps`](/en-US/docs/DOM/Apps) object you can use to install and manage [open web applications](/en-US/docs/Web/Progressive_web_apps). diff --git a/files/en-us/mozilla/firefox/releases/3.5/index.md b/files/en-us/mozilla/firefox/releases/3.5/index.md index 2ecb2210c29bd1c..3f924d5e57d3c6c 100644 --- a/files/en-us/mozilla/firefox/releases/3.5/index.md +++ b/files/en-us/mozilla/firefox/releases/3.5/index.md @@ -111,7 +111,7 @@ page-type: firefox-release-notes - Cross-site access controls for HTTP - : In Firefox 3.5, it's now possible for HTTP requests, including those made by [`XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest), to work across domains if the server supports it. -- [Progress events for `XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Progress events for `XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) - : Progress events are now offered to enable extensions to monitor the progress of requests. - Improved Synchronous `XMLHttpRequest` support - : [DOM Timeout](https://bugzil.la/340345) and [Input Events](https://bugzil.la/333198) are now suppressed during a synchronous `XMLHttpRequest`. diff --git a/files/en-us/mozilla/firefox/releases/39/index.md b/files/en-us/mozilla/firefox/releases/39/index.md index f5587c83e0dd6d2..bb668e5bd3e4e75 100644 --- a/files/en-us/mozilla/firefox/releases/39/index.md +++ b/files/en-us/mozilla/firefox/releases/39/index.md @@ -57,12 +57,12 @@ Highlights: - The experimental `CanvasRenderingContext2D.addHitRegion()` method now accepts a `path` option, which allows you to add hit regions to {{domxref("Path2D")}} objects ([Firefox bug 1129147](https://bugzil.la/1129147)). - New methods have been added to manipulate {{domxref("FormData")}} objects ([Firefox bug 1085283](https://bugzil.la/1085283)) and `FormData` is now supported in Web workers ([Firefox bug 739173](https://bugzil.la/739173)). - The non-standard `XMLHttpRequest.sendAsBinary()` method has been removed. - Refer to the [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data) documentation for alternatives ([Firefox bug 853162](https://bugzil.la/853162)). + Refer to the [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data) documentation for alternatives ([Firefox bug 853162](https://bugzil.la/853162)). - Progress in our experimental implementation of Web Animations: {{domxref("Animation/startTime", "AnimationPlayer.startTime")}} is now writable ([Firefox bug 1073379](https://bugzil.la/1073379)). - Progress in our experimental implementation of [Service Workers](/en-US/docs/Web/API/Service_Worker_API): {{domxref("Cache")}} and {{domxref("CacheStorage")}} interfaces are now implemented ([Firefox bug 940273](https://bugzil.la/940273)). - The experimental [Fetch API](/en-US/docs/Web/API/Fetch_API) has been activated by default ([Firefox bug 1133861](https://bugzil.la/1133861)). - Progress in our experimental implementation of WebGL2: {{domxref("WebGLSync")}} is now implemented ([Firefox bug 1048721](https://bugzil.la/1048721)). -- Support for {{domxref("MouseEvent.offsetX")}} and {{domxref("MouseEvent.offsetY")}} have been added on desktop ([Firefox bug 69787](https://bugzil.la/69787), but not on Firefox for Android or Firefox OS (they will be added in [Firefox 43](/en-US/docs/Mozilla/Firefox/Releases/43)). +- Support for {{domxref("MouseEvent.offsetX")}} and {{domxref("MouseEvent.offsetY")}} have been added on desktop ([Firefox bug 69787](https://bugzil.la/69787), but not on Firefox for Android or Firefox OS (they will be added in [Firefox 43](/en-US/docs/Mozilla/Firefox/Releases/43))). ### MathML diff --git a/files/en-us/mozilla/firefox/releases/4/index.md b/files/en-us/mozilla/firefox/releases/4/index.md index 8992bf172a994d6..722635c1f268dc5 100644 --- a/files/en-us/mozilla/firefox/releases/4/index.md +++ b/files/en-us/mozilla/firefox/releases/4/index.md @@ -275,7 +275,7 @@ Several HTML elements have had their DOM interfaces changed to the ones required - The wrapping of a {{HTMLElement("textarea")}} element can now be controlled via the DOM, via the `wrap` DOM attribute. [Firefox bug 41464](https://bugzil.la/41464) - {{HTMLElement("script")}} elements created using {{domxref("document.createElement()")}} and inserted into a document now behave according to the HTML5 specification by default. Scripts with the `src` attribute execute as soon as available (without maintaining ordering) and scripts without the `src` attribute execute synchronously. To make script-inserted scripts that have the `src` attribute execute in the insertion order, set `.async=false` on them. - DOM {{domxref("file")}} objects now offer a `url` property. -- [FormData](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#using_formdata_objects) support for XMLHttpRequest. +- [FormData](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#using_formdata_objects) support for XMLHttpRequest. - The {{domxref("element.isContentEditable")}} property has been implemented. - The {{domxref("document.currentScript")}} property lets you determine which {{HTMLElement("script")}} element's script is currently executing. The new {{domxref("element.onbeforescriptexecute")}} and {{domxref("element.onafterscriptexecute")}} events are fired before and after a script element executes. - Added the `mozSourceNode` property to the [`DragTransfer`](/en-US/docs/Web/API/DataTransfer) object. diff --git a/files/en-us/mozilla/firefox/releases/5/index.md b/files/en-us/mozilla/firefox/releases/5/index.md index b82d51b77b8c9ca..6ba48178761d8f6 100644 --- a/files/en-us/mozilla/firefox/releases/5/index.md +++ b/files/en-us/mozilla/firefox/releases/5/index.md @@ -44,7 +44,7 @@ Firefox 5, based on Gecko 5.0, was released on June 21, 2011. This article provi - The {{ domxref("selection") }} object's [`modify()`](/en-US/docs/Web/API/Selection/modify) method has been changed so that the "word" selection granularity no longer includes trailing spaces; this makes it more consistent across platforms and matches the behavior of WebKit's implementation. - The {{ domxref("setTimeout()") }} method now clamps to send no more than one timeout per second in inactive tabs. In addition, it now clamps nested timeouts to the smallest value allowed by the HTML5 specification: 4 ms (instead of the 10 ms it used to clamp to). - Similarly, the {{ domxref("setInterval()") }} method now clamps to no more than one interval per second in inactive tabs. -- [`XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest) now [supports the `loadend` event](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#detecting_any_load_end_condition) for progress listeners. This is sent after any transfer is finished (that is, after the `abort`, `error`, or `load` event). You can use this to handle any tasks that need to be performed regardless of success or failure of a transfer. +- [`XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest) now [supports the `loadend` event](/en-US/docs/Web/API/_XMLHttpRequest_API/_Using_XMLHttpRequest#detecting_any_load_end_condition) for progress listeners. This is sent after any transfer is finished (that is, after the `abort`, `error`, or `load` event). You can use this to handle any tasks that need to be performed regardless of success or failure of a transfer. - The {{ domxref("Blob") }} and, by extension, the {{ domxref("File") }} objects' `slice()` method has been removed and replaced with a new, proposed syntax that makes it more consistent with [`Array.slice()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) and [`String.slice()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) methods in JavaScript. This method is named `mozSlice()` for now. - The value of {{ domxref("window.navigator.language") }} is now determined by looking at the value of the `Accept-Language` [HTTP header](/en-US/docs/Web/HTTP/Headers). - The {{ domxref("Element.prefix") }} property is now read only, as required by the DOM specification. diff --git a/files/en-us/mozilla/firefox/releases/9/index.md b/files/en-us/mozilla/firefox/releases/9/index.md index 55e7c5c9cca2044..4c635466036b532 100644 --- a/files/en-us/mozilla/firefox/releases/9/index.md +++ b/files/en-us/mozilla/firefox/releases/9/index.md @@ -47,7 +47,7 @@ _No change._ - The `readystatechange` event is now fired only on the {{ domxref("Document") }}, as intended. - Event handlers are now implemented as standard IDL interfaces. For most cases, this won't affect content, but there are exceptions. - A new response type, "`moz-json`", has been added to `XMLHttpRequest`, letting `XMLHttpRequest` automatically parse [JSON](/en-US/docs/Glossary/JSON) strings for you; when you request this type, a returned JSON string is parsed, so that the value of the `response` property is the resulting JavaScript object. -- [`XMLHttpRequest` "progress" events](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) are now reliably sent for every chunk of data received; in the past it was possible for the last chunk of data received to not fire a "progress" event. Now you can track progress by following only "progress" events, instead of also having to monitor "load" events to detect the receipt of the last chunk of data. +- [`XMLHttpRequest` "progress" events](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) are now reliably sent for every chunk of data received; in the past it was possible for the last chunk of data received to not fire a "progress" event. Now you can track progress by following only "progress" events, instead of also having to monitor "load" events to detect the receipt of the last chunk of data. - In the past, calling [`addEventListener()`](/en-US/docs/Web/API/EventTarget/addEventListener) with a `null` listener would throw an exception. Now it returns without error and with no effect. - The new {{ domxref("navigator.doNotTrack") }} property lets your content easily determine whether or not the user has enabled their do-no-track preference; if this value is "yes", you should not track the user. - {{ domxref("Range") }} and {{ domxref("Selection") }} objects now behave according to their specifications when {{ domxref("Text.splitText()", "splitText()") }} and {{ domxref("Node.normalize", "normalize()") }} are called. @@ -69,7 +69,7 @@ _No change._ ### Networking -- You can now send the contents of [JavaScript typed arrays](/en-US/docs/Web/JavaScript/Guide/Typed_arrays) (that is, the contents of an [`ArrayBuffer`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) object) [using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#sending_typed_arrays_as_binary_data). +- You can now send the contents of [JavaScript typed arrays](/en-US/docs/Web/JavaScript/Guide/Typed_arrays) (that is, the contents of an [`ArrayBuffer`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) object) [using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#sending_typed_arrays_as_binary_data). - WebSocket connections now permit non-characters in otherwise valid UTF-8 data frames to be received, instead of failing. - The HTTP `Accept` header for XSLT requests has been changed to "\*/\*" for simplicity. Since fetching XSLT has always fallen back to "\*/\*" anyway, it made sense to simplify the initial request. - Attempts by a server to use the `301 Moved Permanently` or `307 Temporary Redirect` response codes to redirect the user to a `javascript:` URI now [result in a "bad connection" error](/en-US/docs/Web/HTTP#more_on_redirection_responses) instead of actually redirecting. This prevents certain types of cross-site scripting attacks. diff --git a/files/en-us/web/api/document/lastmodified/index.md b/files/en-us/web/api/document/lastmodified/index.md index d52cea2fdaa2194..8256bbc055ecae2 100644 --- a/files/en-us/web/api/document/lastmodified/index.md +++ b/files/en-us/web/api/document/lastmodified/index.md @@ -88,7 +88,7 @@ if (Number.isNaN(lastVisit) || lastModif > lastVisit) { > **Note:** WebKit returns the time string in UTC; Gecko returns a time in the local timezone. (See: [Bug 4363 – document.lastModified returns date in UTC time, but should return it in local time](https://webkit.org/b/4363)) If you want to know **whether _an external page_ has changed**, -please read [this paragraph about the `XMLHttpRequest()` API](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#get_last_modified_date). +please read [this paragraph about the `XMLHttpRequest()` API](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#get_last_modified_date). ## Specifications diff --git a/files/en-us/web/api/file_api/using_files_from_web_applications/index.md b/files/en-us/web/api/file_api/using_files_from_web_applications/index.md index 3da1fbc77fda847..1d036c2322866c7 100644 --- a/files/en-us/web/api/file_api/using_files_from_web_applications/index.md +++ b/files/en-us/web/api/file_api/using_files_from_web_applications/index.md @@ -576,4 +576,4 @@ URL.revokeObjectURL(obj_url); - {{DOMxRef("FileReader")}} - {{DOMxRef("URL")}} - {{DOMxRef("XMLHttpRequest")}} -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) diff --git a/files/en-us/web/api/formdataevent/formdata/index.md b/files/en-us/web/api/formdataevent/formdata/index.md index 31a1d604e58593f..2c575648616876e 100644 --- a/files/en-us/web/api/formdataevent/formdata/index.md +++ b/files/en-us/web/api/formdataevent/formdata/index.md @@ -62,6 +62,6 @@ formElem.addEventListener("formdata", (e) => { ## See also - {{domxref("XMLHTTPRequest")}} -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) -- [Using FormData objects](/en-US/docs/Web/API/FormData/Using_FormData_Objects) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) +- [Using FormData objects](/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) - {{HTMLElement("Form")}} diff --git a/files/en-us/web/api/history_api/example/index.md b/files/en-us/web/api/history_api/example/index.md index c89e64d966a9a6f..8eb54bcc8f06006 100644 --- a/files/en-us/web/api/history_api/example/index.md +++ b/files/en-us/web/api/history_api/example/index.md @@ -6,7 +6,7 @@ page-type: guide This is an example of a website composed only of three pages (_first_page.php_, _second_page.php_ and _third_page.php_). To see how it works, please create the following files (or git clone [https://github.com/giabao/mdn-ajax-nav-example.git](https://github.com/giabao/mdn-ajax-nav-example) ): -> **Note:** For fully integrating the {{HTMLElement("form")}} elements within this _mechanism_, please take a look at the paragraph [Submitting forms and uploading files](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#submitting_forms_and_uploading_files). +> **Note:** For fully integrating the {{HTMLElement("form")}} elements within this _mechanism_, please take a look at the paragraph [Submitting forms and uploading files](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#submitting_forms_and_uploading_files). **first_page.php**: diff --git a/files/en-us/web/api/xmlhttprequest/abort/index.md b/files/en-us/web/api/xmlhttprequest/abort/index.md index c3babc0a5ca802d..308c7fbe543e11f 100644 --- a/files/en-us/web/api/xmlhttprequest/abort/index.md +++ b/files/en-us/web/api/xmlhttprequest/abort/index.md @@ -56,4 +56,4 @@ if (OH_NOES_WE_NEED_TO_CANCEL_RIGHT_NOW_OR_ELSE) { ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) diff --git a/files/en-us/web/api/xmlhttprequest/abort_event/index.md b/files/en-us/web/api/xmlhttprequest/abort_event/index.md index 370c805a34d0888..38482c1d160d11d 100644 --- a/files/en-us/web/api/xmlhttprequest/abort_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/abort_event/index.md @@ -139,4 +139,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequest/load_event", "load")}}, {{domxref("XMLHttpRequest/progress_event", "progress")}}, {{domxref("XMLHttpRequest/error_event", "error")}}, {{domxref("XMLHttpRequest/loadend_event", "loadend")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/error_event/index.md b/files/en-us/web/api/xmlhttprequest/error_event/index.md index bfaab076f8fddda..4dc917b047c9ca9 100644 --- a/files/en-us/web/api/xmlhttprequest/error_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/error_event/index.md @@ -139,4 +139,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequest/load_event", "load")}}, {{domxref("XMLHttpRequest/progress_event", "progress")}}, {{domxref("XMLHttpRequest/loadend_event", "loadend")}}, {{domxref("XMLHttpRequest/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/getallresponseheaders/index.md b/files/en-us/web/api/xmlhttprequest/getallresponseheaders/index.md index dab3e1c60c2c7db..26494e7957501ef 100644 --- a/files/en-us/web/api/xmlhttprequest/getallresponseheaders/index.md +++ b/files/en-us/web/api/xmlhttprequest/getallresponseheaders/index.md @@ -109,6 +109,6 @@ This obtains the value of the {{httpheader("Content-Type")}} header into the var ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - Setting request headers: {{domxref("XMLHttpRequest.setRequestHeader", "setRequestHeader()")}} diff --git a/files/en-us/web/api/xmlhttprequest/getresponseheader/index.md b/files/en-us/web/api/xmlhttprequest/getresponseheader/index.md index ae14ebbeab37085..038172b0a8f4725 100644 --- a/files/en-us/web/api/xmlhttprequest/getresponseheader/index.md +++ b/files/en-us/web/api/xmlhttprequest/getresponseheader/index.md @@ -75,7 +75,7 @@ client.onreadystatechange = () => { ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - [HTTP headers](/en-US/docs/Web/HTTP/Headers) - {{DOMxRef("XMLHttpRequest.getAllResponseHeaders", "getAllResponseHeaders()")}} - {{DOMxRef("XMLHttpRequest.response", "response")}} diff --git a/files/en-us/web/api/xmlhttprequest/index.md b/files/en-us/web/api/xmlhttprequest/index.md index 8cd2c6aa0ce226e..5dadac93f21e092 100644 --- a/files/en-us/web/api/xmlhttprequest/index.md +++ b/files/en-us/web/api/xmlhttprequest/index.md @@ -124,8 +124,10 @@ _This interface also inherits properties of {{domxref("XMLHttpRequestEventTarget - MDN tutorials covering `XMLHttpRequest`: - [Ajax](/en-US/docs/Web/Guide/AJAX) - - [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) - - [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) + +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) + + - [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) - [Fetch API](/en-US/docs/Web/API/Fetch_API) - [New Tricks in XMLHttpRequest2 (2011)](https://web.dev/articles/xhr2) diff --git a/files/en-us/web/api/xmlhttprequest/load_event/index.md b/files/en-us/web/api/xmlhttprequest/load_event/index.md index f970b4e07e24c94..a3e4f5b85666726 100644 --- a/files/en-us/web/api/xmlhttprequest/load_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/load_event/index.md @@ -139,4 +139,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequest/loadend_event", "loadend")}}, {{domxref("XMLHttpRequest/progress_event", "progress")}}, {{domxref("XMLHttpRequest/error_event", "error")}}, {{domxref("XMLHttpRequest/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/loadend_event/index.md b/files/en-us/web/api/xmlhttprequest/loadend_event/index.md index bf0549868a55407..53338c466877493 100644 --- a/files/en-us/web/api/xmlhttprequest/loadend_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/loadend_event/index.md @@ -143,4 +143,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequest/load_event", "load")}}, {{domxref("XMLHttpRequest/progress_event", "progress")}}, {{domxref("XMLHttpRequest/error_event", "error")}}, {{domxref("XMLHttpRequest/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/loadstart_event/index.md b/files/en-us/web/api/xmlhttprequest/loadstart_event/index.md index 9f2456dfb071df1..72ea5b9bd5e4dfb 100644 --- a/files/en-us/web/api/xmlhttprequest/loadstart_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/loadstart_event/index.md @@ -139,4 +139,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadend_event", "loadend")}}, {{domxref("XMLHttpRequest/load_event", "load")}}, {{domxref("XMLHttpRequest/progress_event", "progress")}}, {{domxref("XMLHttpRequest/error_event", "error")}}, {{domxref("XMLHttpRequest/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/open/index.md b/files/en-us/web/api/xmlhttprequest/open/index.md index 6bc4413c6007b03..039d441d14149a4 100644 --- a/files/en-us/web/api/xmlhttprequest/open/index.md +++ b/files/en-us/web/api/xmlhttprequest/open/index.md @@ -67,7 +67,7 @@ None ({{jsxref("undefined")}}). ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - Related {{domxref("XMLHttpRequest")}} methods: {{domxref("XMLHttpRequest.setRequestHeader", "setRequestHeader()")}}, {{domxref("XMLHttpRequest.send", "send()")}}, and diff --git a/files/en-us/web/api/xmlhttprequest/overridemimetype/index.md b/files/en-us/web/api/xmlhttprequest/overridemimetype/index.md index 7502433e0b0529f..8e53d9e8e847c66 100644 --- a/files/en-us/web/api/xmlhttprequest/overridemimetype/index.md +++ b/files/en-us/web/api/xmlhttprequest/overridemimetype/index.md @@ -67,5 +67,5 @@ req.send(); ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - {{domxref("XMLHttpRequest.responseType")}} diff --git a/files/en-us/web/api/xmlhttprequest/progress_event/index.md b/files/en-us/web/api/xmlhttprequest/progress_event/index.md index e324b88ed18fd4e..8829a47fc40b9c6 100644 --- a/files/en-us/web/api/xmlhttprequest/progress_event/index.md +++ b/files/en-us/web/api/xmlhttprequest/progress_event/index.md @@ -143,4 +143,4 @@ xhrButtonAbort.addEventListener("click", () => { ## See also - Related events: {{domxref("XMLHttpRequest/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequest/load_event", "load")}}, {{domxref("XMLHttpRequest/loadend_event", "loadend")}}, {{domxref("XMLHttpRequest/error_event", "error")}}, {{domxref("XMLHttpRequest/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) diff --git a/files/en-us/web/api/xmlhttprequest/response/index.md b/files/en-us/web/api/xmlhttprequest/response/index.md index 85256ae23e017a8..f0141d0611ac645 100644 --- a/files/en-us/web/api/xmlhttprequest/response/index.md +++ b/files/en-us/web/api/xmlhttprequest/response/index.md @@ -67,6 +67,6 @@ function load(url, callback) { ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - Getting text and HTML/XML data: {{domxref("XMLHttpRequest.responseText")}} and {{domxref("XMLHttpRequest.responseXML")}} diff --git a/files/en-us/web/api/xmlhttprequest/responsetype/index.md b/files/en-us/web/api/xmlhttprequest/responsetype/index.md index 0a7a5b220d6e773..9a98b2241b04cb2 100644 --- a/files/en-us/web/api/xmlhttprequest/responsetype/index.md +++ b/files/en-us/web/api/xmlhttprequest/responsetype/index.md @@ -28,7 +28,7 @@ It can take the following values: - `"blob"` - : The `response` is a {{domxref("Blob")}} object containing the binary data. - `"document"` - - : The `response` is an {{Glossary("HTML")}} {{domxref("Document")}} or {{Glossary("XML")}} {{domxref("XMLDocument")}}, as appropriate based on the MIME type of the received data. See [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) to learn more about using XHR to fetch HTML content. + - : The `response` is an {{Glossary("HTML")}} {{domxref("Document")}} or {{Glossary("XML")}} {{domxref("XMLDocument")}}, as appropriate based on the MIME type of the received data. See [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) to learn more about using XHR to fetch HTML content. - `"json"` - : The `response` is a JavaScript object created by parsing the contents of received data as {{Glossary("JSON")}}. - `"text"` @@ -76,8 +76,8 @@ ignored in a {{domxref("Worker")}}. ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) - The response data: {{domxref("XMLHttpRequest.response", "response")}}, {{domxref("XMLHttpRequest.responseText", "responseText")}}, and {{domxref("XMLHttpRequest.responseXML", "responseXML")}} diff --git a/files/en-us/web/api/xmlhttprequest/send/index.md b/files/en-us/web/api/xmlhttprequest/send/index.md index d204daa4003f0b0..a19358ce5bd600e 100644 --- a/files/en-us/web/api/xmlhttprequest/send/index.md +++ b/files/en-us/web/api/xmlhttprequest/send/index.md @@ -106,5 +106,5 @@ xhr.send("foo=bar&lorem=ipsum"); ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) diff --git a/files/en-us/web/api/xmlhttprequest/setrequestheader/index.md b/files/en-us/web/api/xmlhttprequest/setrequestheader/index.md index 5d67ec71539d2e1..5a1e5ccf630193e 100644 --- a/files/en-us/web/api/xmlhttprequest/setrequestheader/index.md +++ b/files/en-us/web/api/xmlhttprequest/setrequestheader/index.md @@ -50,5 +50,5 @@ None ({{jsxref("undefined")}}). ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) diff --git a/files/en-us/web/api/xmlhttprequest/timeout/index.md b/files/en-us/web/api/xmlhttprequest/timeout/index.md index 0159c0e63525bdb..9cb2e7672cd6aa0 100644 --- a/files/en-us/web/api/xmlhttprequest/timeout/index.md +++ b/files/en-us/web/api/xmlhttprequest/timeout/index.md @@ -12,7 +12,7 @@ The **`XMLHttpRequest.timeout`** property is an `unsigned long` representing the > **Note:** You may not use a timeout for synchronous requests with an owning window. -[Using a timeout with an asynchronous request](/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests#example_using_a_timeout) +[Using a timeout with an asynchronous request](/en-US/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests#example_using_a_timeout). ## Example diff --git a/files/en-us/web/api/xmlhttprequest/upload/index.md b/files/en-us/web/api/xmlhttprequest/upload/index.md index a20026fb8ba62fd..acaf471ad9b05ce 100644 --- a/files/en-us/web/api/xmlhttprequest/upload/index.md +++ b/files/en-us/web/api/xmlhttprequest/upload/index.md @@ -79,5 +79,5 @@ The following events can be triggered on an upload object and used to monitor th ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - {{domxref("XMLHttpRequestUpload")}} diff --git a/files/en-us/web/api/xmlhttprequest/xmlhttprequest/index.md b/files/en-us/web/api/xmlhttprequest/xmlhttprequest/index.md index 6fa1464815cc636..87849d542c6a068 100644 --- a/files/en-us/web/api/xmlhttprequest/xmlhttprequest/index.md +++ b/files/en-us/web/api/xmlhttprequest/xmlhttprequest/index.md @@ -11,8 +11,6 @@ browser-compat: api.XMLHttpRequest.XMLHttpRequest The **`XMLHttpRequest()`** constructor creates a new {{domxref("XMLHttpRequest")}}. -For details about how to use `XMLHttpRequest`, see [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest). - ## Syntax ```js-nolint @@ -62,5 +60,5 @@ const request = new XMLHttpRequest(paramsDictionary); ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) diff --git a/files/en-us/web/api/xmlhttprequest_api/html_in_xmlhttprequest/index.md b/files/en-us/web/api/xmlhttprequest_api/html_in_xmlhttprequest/index.md index 174a6bcc50fd18f..152c6a4abef8a60 100644 --- a/files/en-us/web/api/xmlhttprequest_api/html_in_xmlhttprequest/index.md +++ b/files/en-us/web/api/xmlhttprequest_api/html_in_xmlhttprequest/index.md @@ -9,7 +9,7 @@ browser-compat: api.XMLHttpRequest The W3C {{domxref("XMLHttpRequest")}} specification adds [HTML](/en-US/docs/Web/HTML) parsing support to {{domxref("XMLHttpRequest")}}, which originally supported only {{Glossary("XML")}} parsing. This feature allows Web apps to obtain an HTML resource as a parsed {{Glossary("DOM")}} using `XMLHttpRequest`. -To get an overview of how to use `XMLHttpRequest` in general, see [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest). +To get an overview of how to use `XMLHttpRequest` in general, see [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest). ## Limitations @@ -130,4 +130,4 @@ If the character encoding is declared in the HTTP {{HTTPHeader("Content-Type")}} ## See also - {{domxref("XMLHttpRequest")}} -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) diff --git a/files/en-us/web/api/xmlhttprequest_api/synchronous_and_asynchronous_requests/index.md b/files/en-us/web/api/xmlhttprequest_api/synchronous_and_asynchronous_requests/index.md index 7a800f8b1676a49..f48e41d2601fe9a 100644 --- a/files/en-us/web/api/xmlhttprequest_api/synchronous_and_asynchronous_requests/index.md +++ b/files/en-us/web/api/xmlhttprequest_api/synchronous_and_asynchronous_requests/index.md @@ -235,6 +235,6 @@ function logData() { ## See also -- [Using `XMLHttpRequest`](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - [AJAX](/en-US/docs/Web/Guide/AJAX) - [`navigator.sendBeacon`](/en-US/docs/Web/API/Navigator/sendBeacon) diff --git a/files/en-us/web/api/xmlhttprequest_api/using_formdata_objects/index.md b/files/en-us/web/api/xmlhttprequest_api/using_formdata_objects/index.md index 770cdc567b97806..8ec1d785a01c746 100644 --- a/files/en-us/web/api/xmlhttprequest_api/using_formdata_objects/index.md +++ b/files/en-us/web/api/xmlhttprequest_api/using_formdata_objects/index.md @@ -201,7 +201,7 @@ The `FormData` object doesn't include data from the fields that are disabled or ## See also -- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - {{domxref("HTMLFormElement")}} - {{domxref("Blob")}} - [Typed Arrays](/en-US/docs/Web/JavaScript/Guide/Typed_arrays) diff --git a/files/en-us/web/api/xmlhttprequest_api/using_xmlhttprequest/index.md b/files/en-us/web/api/xmlhttprequest_api/using_xmlhttprequest/index.md index 54397985ea15bb7..c9f3d43b0736c70 100644 --- a/files/en-us/web/api/xmlhttprequest_api/using_xmlhttprequest/index.md +++ b/files/en-us/web/api/xmlhttprequest_api/using_xmlhttprequest/index.md @@ -36,7 +36,7 @@ asynchronously or synchronously. The type of request is dictated by the optional {{domxref("XMLHttpRequest.open()")}} method. If this argument is `true` or not specified, the `XMLHttpRequest` is processed asynchronously, otherwise the process is handled synchronously. A detailed discussion and demonstrations of these -two types of requests can be found on the [synchronous and asynchronous requests](/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests) page. You can't use synchronous requests outside web +two types of requests can be found on the [synchronous and asynchronous requests](/en-US/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests) page. You can't use synchronous requests outside web workers as it freezes the main interface. > **Note:** The constructor `XMLHttpRequest` isn't limited to only XML documents. @@ -70,7 +70,7 @@ There are four primary ways of analyzing this XML document: > **Note:** `XMLHttpRequest` can now interpret HTML for you > using the {{domxref("XMLHttpRequest.responseXML", "responseXML")}} property. Read the -> article about [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) to learn how to do this. +> article about [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) to learn how to do this. ### Processing a responseText property containing an HTML document @@ -80,7 +80,7 @@ containing the raw HTML. This could prove difficult to manipulate and analyze. T three primary ways to analyze and parse this raw HTML string: 1. Use the `XMLHttpRequest.responseXML` property as covered in the article - [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest). + [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest). 2. Inject the content into the body of a [document fragment](/en-US/docs/Web/API/DocumentFragment) via `fragment.body.innerHTML` and traverse the DOM of the fragment. 3. {{jsxref("RegExp")}} can be used if you always know the content of the HTML @@ -126,7 +126,7 @@ req.responseType = "arraybuffer"; req.send(); ``` -For more examples check out the [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data) page. +For more examples check out the [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data) page. ## Monitoring progress @@ -357,7 +357,7 @@ Setting `overrideMimeType` does not work from a {{domxref("Worker")}}. See ## See also -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) - [HTTP access control](/en-US/docs/Web/HTTP/CORS) - [XMLHttpRequest - REST and the Rich User Experience](https://www.peej.co.uk/articles/rich-user-experience.html) - ["Using the XMLHttpRequest Object" (jibbering.com)](https://jibbering.com/2002/4/httprequest.html) diff --git a/files/en-us/web/api/xmlhttprequestupload/progress_event/index.md b/files/en-us/web/api/xmlhttprequestupload/progress_event/index.md index 27218bc8ee0503b..c09ec9a1685bccd 100644 --- a/files/en-us/web/api/xmlhttprequestupload/progress_event/index.md +++ b/files/en-us/web/api/xmlhttprequestupload/progress_event/index.md @@ -65,5 +65,5 @@ xhr.upload.addEventListener("progress", (event) => { ## See also - Related events: {{domxref("XMLHttpRequestUpload/loadstart_event", "loadstart")}}, {{domxref("XMLHttpRequestUpload/load_event", "load")}}, {{domxref("XMLHttpRequestUpload/error_event", "error")}}, {{domxref("XMLHttpRequestUpload/loadend_event", "loadend")}}, {{domxref("XMLHttpRequestUpload/timeout_event", "timeout")}}, {{domxref("XMLHttpRequestUpload/abort_event", "abort")}} -- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) +- [Monitoring progress](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) - {{domxref("XMLHttpRequestUpload")}} diff --git a/files/en-us/web/guide/ajax/index.md b/files/en-us/web/guide/ajax/index.md index 77e295f66968f9f..076306e44c0dd77 100644 --- a/files/en-us/web/guide/ajax/index.md +++ b/files/en-us/web/guide/ajax/index.md @@ -162,7 +162,7 @@ In this example: - The request is made and then (`onreadystatechange`) the execution is passed to `alertContents()`; - `alertContents()` checks if the response was received and OK, then `alert()`s the contents of the `test.html` file. -> **Note:** If you do not set header `Cache-Control: no-cache` the browser will cache the response and never re-submit the request, making debugging challenging. You can also add an always-different GET parameter, like a timestamp or random number (see [bypassing the cache](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#bypassing_the_cache)) +> **Note:** If you do not set header `Cache-Control: no-cache` the browser will cache the response and never re-submit the request, making debugging challenging. You can also add an always-different GET parameter, like a timestamp or random number (see [bypassing the cache](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#bypassing_the_cache)) > **Note:** If the `httpRequest` variable is used globally, competing functions calling `makeRequest()` can overwrite each other, causing a race condition. Declaring the `httpRequest` variable local to a [closure](/en-US/docs/Web/JavaScript/Closures) containing the AJAX functions avoids this. @@ -357,15 +357,15 @@ While Ajax is still useful, other APIs have been developed since 2005 that enabl ## See also -- [Using the `XMLHttpRequest` API](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest) +- [Using the `XMLHttpRequest` API](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest) - : The {{domxref("XMLHttpRequest")}} API is the core of Ajax. This article will explain how to use some Ajax techniques, like: - - [Analyzing and manipulating the response of the server](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#handling_responses) - - [Monitoring the progress of a request](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#monitoring_progress) - - [Submitting forms and upload binary files](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#submitting_forms_and_uploading_files) – in _pure_ Ajax, or using {{domxref("FormData")}} objects + - [Analyzing and manipulating the response of the server](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#handling_responses) + - [Monitoring the progress of a request](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#monitoring_progress) + - [Submitting forms and upload binary files](/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#submitting_forms_and_uploading_files) – in _pure_ Ajax, or using {{domxref("FormData")}} objects - Using Ajax within [Web workers](/en-US/docs/Web/API/Worker) - [_Pure-Ajax_ navigation example](/en-US/docs/Web/API/History_API/Example) - : This article provides a working (minimalist) example of a _pure-Ajax_ website composed only of three pages. -- [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data) +- [Sending and Receiving Binary Data](/en-US/docs/Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data) - : The `responseType` property of the `XMLHttpRequest` object can be set to change the expected response type from the server. Possible values are the empty string (default), `arraybuffer`, `blob`, `document`, `json`, and `text`. The `response` property will contain the entity body according to `responseType`, as an `ArrayBuffer`, `Blob`, `Document`, `JSON`, or string. This article will show some Ajax I/O techniques. - [XML](/en-US/docs/Web/XML) - : The **Extensible Markup Language (XML)** is a W3C-recommended general-purpose markup language for creating special-purpose markup languages. It is a simplified subset of SGML, capable of describing many kinds of data. Its primary purpose is to facilitate the sharing of data across different systems, particularly systems connected via the Internet. @@ -375,7 +375,7 @@ While Ajax is still useful, other APIs have been developed since 2005 that enabl - : XPath stands for **X**ML **Path** Language, it uses a non-XML syntax that provides a flexible way of addressing (pointing to) different parts of an [XML](/en-US/docs/Web/XML) document. As well as this, it can also be used to test addressed nodes within a document to determine whether they match a pattern or not. - {{domxref("FileReader")}} API - : The `FileReader` API lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using {{domxref("File")}} or {{domxref("Blob")}} objects to specify the file or data to read. File objects may be obtained from a {{domxref("FileList")}} object returned as a result of a user selecting files using the {{HTMLElement("input")}} element, or from a drag and drop operation's {{domxref("DataTransfer")}} object. -- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest) +- [HTML in XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest) - : The [XMLHttpRequest](https://xhr.spec.whatwg.org/) specification adds HTML parsing support to {{domxref("XMLHttpRequest")}}, which originally supported only XML parsing. This feature allows Web apps to obtain an HTML resource as a parsed DOM using `XMLHttpRequest`. - [XMLHttpRequest Specification](https://xhr.spec.whatwg.org/) - : WHATWG Living Standard