@@ -41,14 +41,37 @@ <h3>HTML5 video and accelerated content</h3>
4141
4242
4343< h3 > Javascript bindings</ h3 >
44- < a href ="javascript:external.Print('printing in python console from js') ">
45- external.Print('printing in python console from js')</ a >
44+ < a href ="javascript:PyPrint('printing in python console from js') ">
45+ PyPrint('printing in python console from js')</ a > < br >
46+ < a href ="javascript:window.alert(window.pyProperty) ">
47+ window.alert(window.pyProperty)</ a > < br >
48+ < a href ="javascript:window.alert(JSON.stringify(window.pyConfig)) ">
49+ window.alert(JSON.stringify(window.pyConfig))</ a > < br >
50+ < a href ="javascript:external.Print('printing again from js') ">
51+ external.Print('printing again from js')</ a > < br >
52+ < a href ="javascript:external.TestAllTypes(undefined, null, true, 1,
53+ ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string',
54+ {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]},
55+ [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}]) ">
56+ external.TestAllTypes</ a >
57+ < small > (undefined, null, true, 1,
58+ ((1<<31)> > > 0), 2.14, 'Date not yet supported', 'string',
59+ {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]},
60+ [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])</ small >
61+ < br >
62+ < script >
63+ function JavascriptAlert ( message ) { window . alert ( message ) ; }
64+ </ script >
65+ < pre >
66+ <script>
67+ function JavascriptAlert(message) { window.alert(message); }
68+ </script>
69+ </ pre >
70+ < a href ="javascript:external.ExecuteFunction('JavascriptAlert',
71+ 'python called from js and then js called from python') ">
72+ external.ExecuteFunction('JavascriptAlert',
73+ 'python called from js and then js called from python')</ a >
4674
4775
48-
49- < br > < br > < br > < br > < br > < br > < br > < br >
50- < br > < br > < br > < br > < br > < br > < br > < br >
51- < br > < br > < br > < br > < br > < br > < br > < br >
52-
5376</ body >
5477</ html >
0 commit comments