You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Added ConsoleBrowser2 and WebpageSnapshot demos
- Split the Lazarus demos directory into "Lazarus_Windows" and "Lazarus_Linux". - Added OSRExternalPumpBrowser and TinyBrowser2 demos to "Lazarus_Linux". - Set TBufferPanel.GetScreenScale as virtual. - Added DevTools to the SchemeRegistrationBrowser demo. - Modified the SchemeRegistrationBrowser demo to receive XMLHttpRequest requests from JavaScript.
This commit is contained in:
14
bin/test.js
14
bin/test.js
@ -1,5 +1,15 @@
|
||||
function myAlertFunction() {
|
||||
|
||||
alert('This alert dialog is declared in a local JS file.');
|
||||
|
||||
}
|
||||
|
||||
function sendCustomReq() {
|
||||
var xhr = new XMLHttpRequest();
|
||||
var url = 'hello://localhost/customrequest?name1=value1';
|
||||
xhr.open('GET', url, true);
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState == 4 && xhr.status == 200) {
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
}
|
||||
|
Reference in New Issue
Block a user