File: WKTestWidget.html

package info (click to toggle)
software-center 2.0.7debian7
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,404 kB
  • ctags: 1,229
  • sloc: python: 7,922; xml: 317; makefile: 17; sh: 14
file content (34 lines) | stat: -rw-r--r-- 846 bytes parent folder | download
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
32
33
34
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <title></title>
</head>
<body>
 <script type="text/javascript">
  function changeTitle(title) { document.title = title; }
 </script>

 <h1>Test widget</h1>

 <p>
   Some text with a substitute value: '${key}'.
 </p>

 <input type="button" name="test_button" 
        value="Button that calls func1 with arg1,arg2"
      onclick='changeTitle("call:func1:arg1_value,arg2_value")'
 />

 <input type="button" name="test_button2" 
        value="Button that calls func2 (no args)"
      onclick='changeTitle("call:func2")'
 />

 <input type="button" name="test_button3" 
        value="Button that calls func_not_existing (should raise a exception)"
      onclick='changeTitle("call:func_not_existing:")'
 />

</body>
</html>