summaryrefslogtreecommitdiff
path: root/tests/qml/data/respond.html
blob: 29e47b8c4550cebb594a7c5980f0616ac71a27a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
    <head>
        <script type="text/javascript" src="qrc:///qwebchannel/webchannel.js"></script>
        <script type="text/javascript">
            //BEGIN SETUP
            var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
            new QWebChannel(baseUrl, function(channel) {
                channel.exec("foobar", function(response) {
                    channel.send("received:"+response);
                });
            });
            //END SETUP
        </script>
    </head>
    <body>
    </body>
</html>