summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/evalandattach.html
blob: c0992bb05f8fc9219f2a2fb7284038d59c01c052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<body bgcolor=gray onload="ftext.confirmed.connect (ftext_confirmed); ">
    <script>
      do_it = function () {var oPressed = document.getElementById('pressed');
      oPressed.innerHTML = 'MouseRegion in QML clicked!';};
      ftext_confirmed = function () { statusText1.text = ftext.text; var oT = document.getElementById('htmlTextInput'); oT.value = ftext.text }
    </script>
    <table border=1>
      <tr>
        <td>&nbsp</td>
        <td id='pressed'></td>
      </tr>
      <tr>
        <td><label for='htmlTextInput'>Type something:</label></td>
        <td><input type='text' name='htmlTextInput' size='25' id='htmlTextInput'
		   onfocus="statusText2.text = 'Focus in html text input.'"></td>
      </tr>
      <tr>
        <td><label for='htmlButton'>&nbsp;</label></td>
        <td>
          <input type='button' id='htmlButton' value='Push'
		 onclick="var oText = document.getElementById('htmlTextInput'); statusText1.text = oText.value; ftext.text = oText.value" />
      </tr>
    </table>
    <p>
      Below a qml(QFxItem) object inside webkit:
    </p>
    <object data=content/FieldText.qml TYPE=application/x-qt-plugin id="ftext_id" text="" label="Cool:" width="200" 
	    objectname="ftext">
      </object>
</body>