- throws an error, returning a PyFrame object to to javascript is not yet supported<br>
<ahref="javascript:alert(browser.GetFrame('simple'))">GetFrame('simple')</a> - throws an error, returning a PyFrame object to javascript is not yet supported<br>
<ahref="javascript:alert(python.GetType(2147483648))">python.GetType(2147483648)</a> - here we get UINT from CEF so it is converted to long in Py2, int in Py3.<br>
<textareaid=jscodecols=50rows=2>alert('test me [unicode: ąś]')</textarea><br>
<ahref="javascript:python.ExecuteJavascript(jscode.value)">python.ExecuteJavascript(jscode.value)</a> - execute javascript from the textarea above.
<h3>Frames</h3>
<iframesrc="cefsimple.html" name=simple></iframe>
<iframesrc="cefsimple_onloaderror.html"></iframe>
<h3>Javascript bindings</h3>
See output in the console for the javascript bindings tests.<br>
Note: "window." is optional, you can just call "python.Test1()".<br>
<h4>Passing arguments</h4>
<ahref="javascript:alert('Return value from python.Test1: '+python.Test1(100))">python.Test1(100)</a><br>
<ahref="javascript:alert('Return value from python.Test2: '+JSON.stringify(python.Test2(100, 'This string was passed from javascript [unicode: ąś]', '')))">python.Test2(100, 'This string was passed from javascript [unicode: ąś]', '')</a> - python.Test2() should return: [1,2, [2.1, {'3': 3, '4': [5,6]}], unicode...]
<br><br>
<script>vararray=[1];array[100]=100.01;</script>
<ahref="javascript:python.Test1(array)">python.Test1(array)</a> (var array = [1]; array[100] = 100.01;) - the gap is filled with None values.<br>
<ahref="javascript:python.Test1(nested)">python.Test1(nested)</a> (var nested = [1,2, [3, 4, [5,6, [{7:7, 8: [9,10]}, 11]]]];) - dictionary keys will be in a different order in Python.<br>
<ahref="javascript:python.ChangeAlertDuringRuntime()">python.ChangeAlertDuringRuntime()</a> - now check window.alert() above, the messagebox style should be changed.