Alessandro Bonazzi 8c43d5cf2f Patch level : 12.00
Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
2025-04-06 00:42:21 +02:00

31 lines
817 B
QML

import QtQuick 1.0
QtObject {
property int readyState
property bool statusIsException: false
property bool statusTextIsException: false
property string responseText
property bool responseXMLIsNull
Component.onCompleted: {
var xhr = new XMLHttpRequest();
readyState = xhr.readyState;
try {
status = xhr.status;
} catch (error) {
if (error.code == DOMException.INVALID_STATE_ERR)
statusIsException = true;
}
try {
statusText = xhr.statusText;
} catch (error) {
if (error.code == DOMException.INVALID_STATE_ERR)
statusTextIsException = true;
}
responseText = xhr.responseText;
responseXMLIsNull = (xhr.responseXML == null);
}
}