www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 statusText Property
statusText Property

Retrieves the friendly HTTP status of the request.

Syntax

[ sStatus = ] XMLHttpRequest.statusText

Possible Values

sStatusString that receives the HTTP status of the request.

The property is read-only. The property has no default value.

Remarks

statusText was introduced in Windows Internet Explorer 7.

Example

The following script checks the status to determine if the request was successful:

oReq.open("GET", "http://localhost/test.xml", false);
oReq.send()
if (oReq.statusText == "OK")
   alert(oReq.responseText);
else
   alert(oReq.statusText);

Standards Information

This property is defined in The XMLHttpRequest Object (W3C Working Draft) World Wide Web link.

Applies To

XMLHttpRequest

See Also

status
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG