summaryrefslogtreecommitdiffstats
path: root/examples/declarative/xmlhttprequest
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:27:13 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:27:13 (GMT)
commit62b51f36c41fdef46b785d8f3a9443c016a9263a (patch)
treefb6878c5036de4d76a5a19011b9531ef5949a437 /examples/declarative/xmlhttprequest
parent3c4df26a8d184b728395c8aad26b05626176b7b5 (diff)
downloadQt-62b51f36c41fdef46b785d8f3a9443c016a9263a.zip
Qt-62b51f36c41fdef46b785d8f3a9443c016a9263a.tar.gz
Qt-62b51f36c41fdef46b785d8f3a9443c016a9263a.tar.bz2
Use console.log, not print
Diffstat (limited to 'examples/declarative/xmlhttprequest')
-rw-r--r--examples/declarative/xmlhttprequest/test.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/declarative/xmlhttprequest/test.qml b/examples/declarative/xmlhttprequest/test.qml
index 18447e5..18e328b 100644
--- a/examples/declarative/xmlhttprequest/test.qml
+++ b/examples/declarative/xmlhttprequest/test.qml
@@ -10,21 +10,21 @@ Rectangle {
var doc = new XMLHttpRequest();
doc.onreadystatechange = function() {
if (doc.readyState == XMLHttpRequest.HEADERS_RECEIVED) {
- print ("Headers -->");
- print (doc.getAllResponseHeaders ());
- print ("Last modified -->");
- print (doc.getResponseHeader ("Last-Modified"));
+ console.log("Headers -->");
+ console.log(doc.getAllResponseHeaders ());
+ console.log("Last modified -->");
+ console.log(doc.getResponseHeader ("Last-Modified"));
}
else if (doc.readyState == XMLHttpRequest.DONE) {
var a = doc.responseXML.documentElement;
for (var ii = 0; ii < a.childNodes.length; ++ii) {
- print (a.childNodes[ii].nodeName);
+ console.log(a.childNodes[ii].nodeName);
}
- print ("Headers -->");
- print (doc.getAllResponseHeaders ());
- print ("Last modified -->");
- print (doc.getResponseHeader ("Last-Modified"));
+ console.log("Headers -->");
+ console.log(doc.getAllResponseHeaders ());
+ console.log("Last modified -->");
+ console.log(doc.getResponseHeader ("Last-Modified"));
}
}