mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 07:45:56 +01:00
1299a6f596
- 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.
16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
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();
|
|
}
|