| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,13 +287,13 @@ <h3>Print</h3> | |||
| 287 | 287 | <h3>TestAllTypes</h3> | |
| 288 | 288 | ||
| 289 | 289 | <script>ShowSource("TestAllTypes");</script> | |
| 290 | - <a href="javascript:external.TestAllTypes(undefined, null, true, 1, | ||
| 291 | - ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 290 | + <a href="javascript:external.TestAllTypes(undefined, null, true, 1, | ||
| 291 | + ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 292 | 292 | {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]}, | |
| 293 | 293 | [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])"> | |
| 294 | 294 | external.TestAllTypes</a> | |
| 295 | - <small>(undefined, null, true, 1, | ||
| 296 | - ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 295 | + <small>(undefined, null, true, 1, | ||
| 296 | + ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 297 | 297 | {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]}, | |
| 298 | 298 | [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])</small> | |
| 299 | 299 | <br> | |
@@ -310,10 +310,10 @@ <h3>ExecuteFunction</h3> | |||
| 310 | 310 | </code></pre> | |
| 311 | 311 | ||
| 312 | 312 | <script>ShowSource("ExecuteFunction");</script> | |
| 313 | - <a href="javascript:external.ExecuteFunction('JavascriptAlert', | ||
| 314 | - 'python called from js and then js called from python')"> | ||
| 315 | - external.ExecuteFunction('JavascriptAlert', | ||
| 316 | - 'python called from js and then js called from python')</a> | ||
| 313 | + <a href="javascript:external.ExecuteFunction('JavascriptAlert', | ||
| 314 | + 'python called from js and then js called from python', 0, [1,2])"> | ||
| 315 | + external.ExecuteFunction('JavascriptAlert', | ||
| 316 | + 'python called from js and then js called from python', 0, [1,2])</a> | ||
| 317 | 317 | <br> | |
| 318 | 318 | ||
| 319 | 319 | <h3>GetSource, GetText</h3> | |
@@ -429,7 +429,7 @@ <h3>OnStatusMessage</h3> | |||
| 429 | 429 | ||
| 430 | 430 | <h3>OnConsoleMessage</h3> | |
| 431 | 431 | <script>ShowSource("OnConsoleMessage");</script> | |
| 432 | - Try this: | ||
| 432 | + Try this: | ||
| 433 | 433 | <a href="http://patik.com/code/console-log-polyfill/"> | |
| 434 | 434 | http://patik.com/code/console-log-polyfill/</a> | |
| 435 | 435 | ||
@@ -442,7 +442,7 @@ <h2>Keyboard handler</h2> | |||
| 442 | 442 | ||
| 443 | 443 | <p> | |
| 444 | 444 | Press F5 to reload the page.<br> | |
| 445 | - On Linux it is required to click anywhere in the window first | ||
| 445 | + On Linux it is required to click anywhere in the window first | ||
| 446 | 446 | so that keyboard focus is set. See Issue 77 in the CEF Python | |
| 447 | 447 | Issue Tracker. | |
| 448 | 448 | </p> | |
@@ -465,7 +465,7 @@ <h3>OnResourceRedirect</h3> | |||
| 465 | 465 | <script>ShowSource("OnResourceRedirect");</script> | |
| 466 | 466 | Try this: | |
| 467 | 467 | <a href="http://tinyurl.com/google404redirect"> | |
| 468 | - http://tinyurl.com/google404redirect</a> | ||
| 468 | + http://tinyurl.com/google404redirect</a> | ||
| 469 | 469 | ||
| 470 | 470 | <h3>GetAuthCredentials</h3> | |
| 471 | 471 | <script>ShowSource("GetAuthCredentials");</script> | |
@@ -478,7 +478,7 @@ <h3>OnQuotaRequest</h3> | |||
| 478 | 478 | ||
| 479 | 479 | <script> | |
| 480 | 480 | function DoRequestQuota() { | |
| 481 | - // Request Quota (only for File System API) | ||
| 481 | + // Request Quota (only for File System API) | ||
| 482 | 482 | try { | |
| 483 | 483 | navigator.webkitPersistentStorage.requestQuota(PERSISTENT, 1024*1024, | |
| 484 | 484 | function(bytes){ window.alert("Granted bytes: "+bytes);}, | |
@@ -493,7 +493,7 @@ <h3>OnQuotaRequest</h3> | |||
| 493 | 493 | ||
| 494 | 494 | <pre><code class="language-javascript"><script> | |
| 495 | 495 | function DoRequestQuota() { | |
| 496 | - // Request Quota (only for File System API) | ||
| 496 | + // Request Quota (only for File System API) | ||
| 497 | 497 | try { | |
| 498 | 498 | navigator.webkitPersistentStorage.requestQuota(PERSISTENT, 1024*1024, | |
| 499 | 499 | function(bytes){ window.alert("Granted bytes: "+bytes);}, | |
@@ -507,7 +507,7 @@ <h3>OnQuotaRequest</h3> | |||
| 507 | 507 | </script> | |
| 508 | 508 | </code></pre> | |
| 509 | 509 | ||
| 510 | - Try this: | ||
| 510 | + Try this: | ||
| 511 | 511 | <a href="https://googledrive.com/host/0B1di2XiBBfacMnhRRkI1YlotUEk/requestquota.html"> | |
| 512 | 512 | https://googledrive.com/host/0B1di2XiBBfacMnhRRkI1YlotUEk/requestquota.html</a> | |
| 513 | 513 | ||
@@ -542,7 +542,7 @@ <h3>_OnCertificateError</h3> | |||
| 542 | 542 | ||
| 543 | 543 | <h3>OnRendererProcessTerminated</h3> | |
| 544 | 544 | <script>ShowSource("OnRendererProcessTerminated");</script> | |
| 545 | - Try to terminate the "subprocess.exe" renderer process through | ||
| 545 | + Try to terminate the "subprocess.exe" renderer process through | ||
| 546 | 546 | task manager. | |
| 547 | 547 | ||
| 548 | 548 | <h3>OnPluginCrashed</h3> | |
@@ -563,7 +563,7 @@ <h3>GetCookieManager</h3> | |||
| 563 | 563 | <script>ShowSource("GetCookieManager");</script> | |
| 564 | 564 | ||
| 565 | 565 | RequestHandler.GetCookieManager() - an example of having an unique | |
| 566 | - cookie manager for each browser. | ||
| 566 | + cookie manager for each browser. | ||
| 567 | 567 | <ol> | |
| 568 | 568 | <li>Visit the url below and set some cookies. Use "Back" from | |
| 569 | 569 | context menu to get back here (you might have to click "Back" | |
@@ -608,12 +608,12 @@ <h3>VisitUrlCookies</h3> | |||
| 608 | 608 | ||
| 609 | 609 | <h3>SetCookie</h3> | |
| 610 | 610 | <script>ShowSource("SetCookie");</script> | |
| 611 | - Set a cookie on html-kit.com: | ||
| 611 | + Set a cookie on html-kit.com: | ||
| 612 | 612 | <a href="javascript:external.SetCookie()">external.SetCookie()</a> | |
| 613 | 613 | <br> | |
| 614 | 614 | Go see the cookie that was created: | |
| 615 | 615 | <a href="http://www.html-kit.com/tools/cookietester/"> | |
| 616 | - http://www.html-kit.com/tools/cookietester/</a> | ||
| 616 | + http://www.html-kit.com/tools/cookietester/</a> | ||
| 617 | 617 | ||
| 618 | 618 | <h3>DeleteCookies</h3> | |
| 619 | 619 | <script>ShowSource("DeleteCookies");</script> | |
@@ -623,7 +623,7 @@ <h3>DeleteCookies</h3> | |||
| 623 | 623 | <br> | |
| 624 | 624 | Go check if cookie was deleted: | |
| 625 | 625 | <a href="http://www.html-kit.com/tools/cookietester/"> | |
| 626 | - http://www.html-kit.com/tools/cookietester/</a> | ||
| 626 | + http://www.html-kit.com/tools/cookietester/</a> | ||
| 627 | 627 | ||
| 628 | 628 | <!-- ********************************************************************** --> | |
| 629 | 629 | <!-- Load handler --> | |
@@ -648,7 +648,7 @@ <h3>OnLoadError</h3> | |||
| 648 | 648 | After you see the custom error message you have to hit | |
| 649 | 649 | twice the Back from the context menu, to get back to this page. | |
| 650 | 650 | <br> | |
| 651 | - Try this: | ||
| 651 | + Try this: | ||
| 652 | 652 | <a href="http://www.non-existent.nono/"> | |
| 653 | 653 | http://www.non-existent.nono/</a> | |
| 654 | 654 | <br> | |
@@ -698,7 +698,7 @@ <h3>OnBeforeUnloadJavascriptDialog</h3> | |||
| 698 | 698 | <h3>OnResetJavascriptDialogState</h3> | |
| 699 | 699 | <script>ShowSource("OnResetJavascriptDialogState");</script> | |
| 700 | 700 | ||
| 701 | - <h3>OnJavascriptDialogClosed</h3> | ||
| 701 | + <h3>OnJavascriptDialogClosed</h3> | ||
| 702 | 702 | <script>ShowSource("OnJavascriptDialogClosed");</script> | |
| 703 | 703 | ||
| 704 | 704 | <!-- ********************************************************************** --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,7 +255,7 @@ def TestAllTypes(self, *args): | |||
| 255 | 255 | print("[wxpython.py] TestAllTypes: "+str(args)) | |
| 256 | 256 | ||
| 257 | 257 | def ExecuteFunction(self, *args): | |
| 258 | - self.mainBrowser.GetMainFrame().ExecuteFunction(*args) | ||
| 258 | + self.mainBrowser.ExecuteFunction(*args) | ||
| 259 | 259 | ||
| 260 | 260 | def TestJSCallback(self, jsCallback): | |
| 261 | 261 | print("[wxpython.py] jsCallback.GetFunctionName() = %s"\ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,13 +287,13 @@ <h3>Print</h3> | |||
| 287 | 287 | <h3>TestAllTypes</h3> | |
| 288 | 288 | ||
| 289 | 289 | <script>ShowSource("TestAllTypes");</script> | |
| 290 | - <a href="javascript:external.TestAllTypes(undefined, null, true, 1, | ||
| 291 | - ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 290 | + <a href="javascript:external.TestAllTypes(undefined, null, true, 1, | ||
| 291 | + ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 292 | 292 | {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]}, | |
| 293 | 293 | [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])"> | |
| 294 | 294 | external.TestAllTypes</a> | |
| 295 | - <small>(undefined, null, true, 1, | ||
| 296 | - ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 295 | + <small>(undefined, null, true, 1, | ||
| 296 | + ((1<<31)>>>0), 2.14, 'Date not yet supported', 'string', | ||
| 297 | 297 | {key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]}, | |
| 298 | 298 | [1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])</small> | |
| 299 | 299 | <br> | |
@@ -310,10 +310,10 @@ <h3>ExecuteFunction</h3> | |||
| 310 | 310 | </code></pre> | |
| 311 | 311 | ||
| 312 | 312 | <script>ShowSource("ExecuteFunction");</script> | |
| 313 | - <a href="javascript:external.ExecuteFunction('JavascriptAlert', | ||
| 314 | - 'python called from js and then js called from python')"> | ||
| 315 | - external.ExecuteFunction('JavascriptAlert', | ||
| 316 | - 'python called from js and then js called from python')</a> | ||
| 313 | + <a href="javascript:external.ExecuteFunction('JavascriptAlert', | ||
| 314 | + 'python called from js and then js called from python', 0, [1,2])"> | ||
| 315 | + external.ExecuteFunction('JavascriptAlert', | ||
| 316 | + 'python called from js and then js called from python', 0, [1,2])</a> | ||
| 317 | 317 | <br> | |
| 318 | 318 | ||
| 319 | 319 | <h3>GetSource, GetText</h3> | |
@@ -429,7 +429,7 @@ <h3>OnStatusMessage</h3> | |||
| 429 | 429 | ||
| 430 | 430 | <h3>OnConsoleMessage</h3> | |
| 431 | 431 | <script>ShowSource("OnConsoleMessage");</script> | |
| 432 | - Try this: | ||
| 432 | + Try this: | ||
| 433 | 433 | <a href="http://patik.com/code/console-log-polyfill/"> | |
| 434 | 434 | http://patik.com/code/console-log-polyfill/</a> | |
| 435 | 435 | ||
@@ -442,7 +442,7 @@ <h2>Keyboard handler</h2> | |||
| 442 | 442 | ||
| 443 | 443 | <p> | |
| 444 | 444 | Press F5 to reload the page.<br> | |
| 445 | - On Linux it is required to click anywhere in the window first | ||
| 445 | + On Linux it is required to click anywhere in the window first | ||
| 446 | 446 | so that keyboard focus is set. See Issue 77 in the CEF Python | |
| 447 | 447 | Issue Tracker. | |
| 448 | 448 | </p> | |
@@ -465,7 +465,7 @@ <h3>OnResourceRedirect</h3> | |||
| 465 | 465 | <script>ShowSource("OnResourceRedirect");</script> | |
| 466 | 466 | Try this: | |
| 467 | 467 | <a href="http://tinyurl.com/google404redirect"> | |
| 468 | - http://tinyurl.com/google404redirect</a> | ||
| 468 | + http://tinyurl.com/google404redirect</a> | ||
| 469 | 469 | ||
| 470 | 470 | <h3>GetAuthCredentials</h3> | |
| 471 | 471 | <script>ShowSource("GetAuthCredentials");</script> | |
@@ -478,7 +478,7 @@ <h3>OnQuotaRequest</h3> | |||
| 478 | 478 | ||
| 479 | 479 | <script> | |
| 480 | 480 | function DoRequestQuota() { | |
| 481 | - // Request Quota (only for File System API) | ||
| 481 | + // Request Quota (only for File System API) | ||
| 482 | 482 | try { | |
| 483 | 483 | navigator.webkitPersistentStorage.requestQuota(PERSISTENT, 1024*1024, | |
| 484 | 484 | function(bytes){ window.alert("Granted bytes: "+bytes);}, | |
@@ -493,7 +493,7 @@ <h3>OnQuotaRequest</h3> | |||
| 493 | 493 | ||
| 494 | 494 | <pre><code class="language-javascript"><script> | |
| 495 | 495 | function DoRequestQuota() { | |
| 496 | - // Request Quota (only for File System API) | ||
| 496 | + // Request Quota (only for File System API) | ||
| 497 | 497 | try { | |
| 498 | 498 | navigator.webkitPersistentStorage.requestQuota(PERSISTENT, 1024*1024, | |
| 499 | 499 | function(bytes){ window.alert("Granted bytes: "+bytes);}, | |
@@ -507,7 +507,7 @@ <h3>OnQuotaRequest</h3> | |||
| 507 | 507 | </script> | |
| 508 | 508 | </code></pre> | |
| 509 | 509 | ||
| 510 | - Try this: | ||
| 510 | + Try this: | ||
| 511 | 511 | <a href="https://googledrive.com/host/0B1di2XiBBfacMnhRRkI1YlotUEk/requestquota.html"> | |
| 512 | 512 | https://googledrive.com/host/0B1di2XiBBfacMnhRRkI1YlotUEk/requestquota.html</a> | |
| 513 | 513 | ||
@@ -542,7 +542,7 @@ <h3>_OnCertificateError</h3> | |||
| 542 | 542 | ||
| 543 | 543 | <h3>OnRendererProcessTerminated</h3> | |
| 544 | 544 | <script>ShowSource("OnRendererProcessTerminated");</script> | |
| 545 | - Try to terminate the "subprocess.exe" renderer process through | ||
| 545 | + Try to terminate the "subprocess.exe" renderer process through | ||
| 546 | 546 | task manager. | |
| 547 | 547 | ||
| 548 | 548 | <h3>OnPluginCrashed</h3> | |
@@ -563,7 +563,7 @@ <h3>GetCookieManager</h3> | |||
| 563 | 563 | <script>ShowSource("GetCookieManager");</script> | |
| 564 | 564 | ||
| 565 | 565 | RequestHandler.GetCookieManager() - an example of having an unique | |
| 566 | - cookie manager for each browser. | ||
| 566 | + cookie manager for each browser. | ||
| 567 | 567 | <ol> | |
| 568 | 568 | <li>Visit the url below and set some cookies. Use "Back" from | |
| 569 | 569 | context menu to get back here (you might have to click "Back" | |
@@ -608,12 +608,12 @@ <h3>VisitUrlCookies</h3> | |||
| 608 | 608 | ||
| 609 | 609 | <h3>SetCookie</h3> | |
| 610 | 610 | <script>ShowSource("SetCookie");</script> | |
| 611 | - Set a cookie on html-kit.com: | ||
| 611 | + Set a cookie on html-kit.com: | ||
| 612 | 612 | <a href="javascript:external.SetCookie()">external.SetCookie()</a> | |
| 613 | 613 | <br> | |
| 614 | 614 | Go see the cookie that was created: | |
| 615 | 615 | <a href="http://www.html-kit.com/tools/cookietester/"> | |
| 616 | - http://www.html-kit.com/tools/cookietester/</a> | ||
| 616 | + http://www.html-kit.com/tools/cookietester/</a> | ||
| 617 | 617 | ||
| 618 | 618 | <h3>DeleteCookies</h3> | |
| 619 | 619 | <script>ShowSource("DeleteCookies");</script> | |
@@ -623,7 +623,7 @@ <h3>DeleteCookies</h3> | |||
| 623 | 623 | <br> | |
| 624 | 624 | Go check if cookie was deleted: | |
| 625 | 625 | <a href="http://www.html-kit.com/tools/cookietester/"> | |
| 626 | - http://www.html-kit.com/tools/cookietester/</a> | ||
| 626 | + http://www.html-kit.com/tools/cookietester/</a> | ||
| 627 | 627 | ||
| 628 | 628 | <!-- ********************************************************************** --> | |
| 629 | 629 | <!-- Load handler --> | |
@@ -648,7 +648,7 @@ <h3>OnLoadError</h3> | |||
| 648 | 648 | After you see the custom error message you have to hit | |
| 649 | 649 | twice the Back from the context menu, to get back to this page. | |
| 650 | 650 | <br> | |
| 651 | - Try this: | ||
| 651 | + Try this: | ||
| 652 | 652 | <a href="http://www.non-existent.nono/"> | |
| 653 | 653 | http://www.non-existent.nono/</a> | |
| 654 | 654 | <br> | |
@@ -698,7 +698,7 @@ <h3>OnBeforeUnloadJavascriptDialog</h3> | |||
| 698 | 698 | <h3>OnResetJavascriptDialogState</h3> | |
| 699 | 699 | <script>ShowSource("OnResetJavascriptDialogState");</script> | |
| 700 | 700 | ||
| 701 | - <h3>OnJavascriptDialogClosed</h3> | ||
| 701 | + <h3>OnJavascriptDialogClosed</h3> | ||
| 702 | 702 | <script>ShowSource("OnJavascriptDialogClosed");</script> | |
| 703 | 703 | ||
| 704 | 704 | <!-- ********************************************************************** --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,7 +255,7 @@ def TestAllTypes(self, *args): | |||
| 255 | 255 | print("[wxpython.py] TestAllTypes: "+str(args)) | |
| 256 | 256 | ||
| 257 | 257 | def ExecuteFunction(self, *args): | |
| 258 | - self.mainBrowser.GetMainFrame().ExecuteFunction(*args) | ||
| 258 | + self.mainBrowser.ExecuteFunction(*args) | ||
| 259 | 259 | ||
| 260 | 260 | def TestJSCallback(self, jsCallback): | |
| 261 | 261 | print("[wxpython.py] jsCallback.GetFunctionName() = %s"\ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments