Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
31 lines
817 B
QML
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);
|
|
}
|
|
}
|
|
|