diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
| commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
| tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/xmlhttprequest/status/index.html | |
| parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
| download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/xmlhttprequest/status/index.html')
| -rw-r--r-- | files/fr/web/api/xmlhttprequest/status/index.html | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/files/fr/web/api/xmlhttprequest/status/index.html b/files/fr/web/api/xmlhttprequest/status/index.html deleted file mode 100644 index a6fe81eda6..0000000000 --- a/files/fr/web/api/xmlhttprequest/status/index.html +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: XMLHttpRequest.status -slug: Web/API/XMLHttpRequest/status -translation_of: Web/API/XMLHttpRequest/status ---- -<div>{{APIRef('XMLHttpRequest')}}</div> - -<p>La propriété en lecture seule XMLHttpRequest.status renvoie le code d'état HTTP numérique de la réponse de XMLHttpRequest.</p> - -<p>Avant que la demande ne se termine, la valeur du statut est 0. Les navigateurs signalent également un statut de 0 en cas d'erreurs XMLHttpRequest.</p> - -<h2 id="Exemple">Exemple</h2> - -<pre class="brush: js">var xhr = new XMLHttpRequest(); -console.log('UNSENT: ', xhr.status); - -xhr.open('GET', '/server'); -console.log('OPENED: ', xhr.status); - -xhr.onprogress = function () { - console.log('LOADING: ', xhr.status); -}; - -xhr.onload = function () { - console.log('DONE: ', xhr.status); -}; - -xhr.send(); - -/** - * Outputs the following: - * - * UNSENT: 0 - * OPENED: 0 - * LOADING: 200 - * DONE: 200 - */ -</pre> - -<h2 id="Specifications">Specifications</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Specification</th> - <th scope="col">Statut</th> - <th scope="col">Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('XMLHttpRequest', '#the-status-attribute')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("api.XMLHttpRequest.status")}}</p> - -<p>Voir aussi</p> - -<ul> - <li>Liste des <a href="/en-US/docs/Web/HTTP/Response_codes">HTTP response codes</a></li> - <li><a href="/en-US/docs/Web/HTTP">HTTP</a></li> -</ul> |
