mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-08 07:41:04 +01:00
0255e4c741
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@2011 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
29 lines
793 B
HTML
29 lines
793 B
HTML
<html>
|
|
<head>
|
|
<title>Binding Test</title>
|
|
<script language="JavaScript">
|
|
|
|
// Send a query to the browser process.
|
|
function sendMessage() {
|
|
// Results in a call to the OnQuery method in binding_test.cpp
|
|
window.cefQuery({
|
|
request: 'BindingTest:' + document.getElementById("message").value,
|
|
onSuccess: function(response) {
|
|
document.getElementById('result').value = 'Response: '+response;
|
|
},
|
|
onFailure: function(error_code, error_message) {}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body bgcolor="white">
|
|
<form>
|
|
Message: <input type="text" id="message" value="My Message">
|
|
<br/><input type="button" onclick="sendMessage();" value="Send Message">
|
|
<br/>You should see the reverse of your message below:
|
|
<br/><textarea rows="10" cols="40" id="result"></textarea>
|
|
</form>
|
|
</body>
|
|
</html>
|