Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / doc / src / declarative / globalobject.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** GNU Free Documentation License
10 ** Alternatively, this file may be used under the terms of the GNU Free
11 ** Documentation License version 1.3 as published by the Free Software
12 ** Foundation and appearing in the file included in the packaging of
13 ** this file.
14 **
15 ** Other Usage
16 ** Alternatively, this file may be used in accordance with the terms
17 ** and conditions contained in a signed written agreement between you
18 ** and Nokia.
19 **
20 **
21 **
22 **
23 **
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 /*!
29 \page qdeclarativeglobalobject.html
30 \inqmlmodule QtQuick 2
31 \title QML Global Object
32
33 Contains all the properties of the JavaScript global object, plus:
34
35 \tableofcontents
36
37 \section1 Qt Object
38
39 The \l{QmlGlobalQtObject}{Qt object} provides useful enums and functions from Qt, for use in all QML
40 files. 
41
42 \section1 XMLHttpRequest
43
44 \target XMLHttpRequest
45
46 QML script supports the XMLHttpRequest object, which can be used to asynchronously obtain 
47 data from over a network.  
48
49 The XMLHttpRequest API implements the same \l {http://www.w3.org/TR/XMLHttpRequest/}{W3C standard}
50 as many popular web browsers with following exceptions:
51 \list
52 \o QML's XMLHttpRequest does not enforce the same origin policy.
53 \o QML's XMLHttpRequest does not support \i synchronous requests.
54 \endlist
55
56 Additionally, the \c responseXML XML DOM tree currently supported by QML is a reduced subset
57 of the \l {http://www.w3.org/TR/DOM-Level-3-Core/}{DOM Level 3 Core} API supported in a web
58 browser.  The following objects and properties are supported by the QML implementation:
59
60 \table
61 \header
62 \o \bold {Node}
63 \o \bold {Document}
64 \o \bold {Element}
65 \o \bold {Attr}
66 \o \bold {CharacterData}
67 \o \bold {Text}
68
69 \row
70 \o 
71 \list
72 \o nodeName
73 \o nodeValue
74 \o nodeType
75 \o parentNode
76 \o childNodes
77 \o firstChild
78 \o lastChild
79 \o previousSibling
80 \o nextSibling
81 \o attributes
82 \endlist
83
84 \o 
85 \list
86 \o xmlVersion
87 \o xmlEncoding
88 \o xmlStandalone
89 \o documentElement
90 \endlist
91
92 \o
93 \list 
94 \o tagName
95 \endlist
96
97 \o
98 \list
99 \o name
100 \o value
101 \o ownerElement
102 \endlist
103
104 \o
105 \list 
106 \o data
107 \o length
108 \endlist
109
110 \o
111 \list
112 \o isElementContentWhitespace
113 \o wholeText
114 \endlist
115
116 \endtable
117
118 The \l{declarative/xml/xmlhttprequest}{XMLHttpRequest example} demonstrates how to
119 use the XMLHttpRequest object to make a request and read the response headers.
120
121 \section1 Logging
122
123 \c console.log(), \c console.debug(), \c console.time(), and \c console.timeEnd() can be used to print information
124 to the console. See \l{Debugging QML} for more information.
125
126 */