4 property int readyState
5 property bool statusIsException: false
6 property bool statusTextIsException: false
7 property string responseText
8 property bool responseXMLIsNull
10 Component.onCompleted: {
11 var xhr = new XMLHttpRequest();
13 readyState = xhr.readyState;
17 if (error.code == DOMException.INVALID_STATE_ERR)
18 statusIsException = true;
21 statusText = xhr.statusText;
23 if (error.code == DOMException.INVALID_STATE_ERR)
24 statusTextIsException = true;
26 responseText = xhr.responseText;
27 responseXMLIsNull = (xhr.responseXML == null);