mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-24 16:31:39 +01:00
bf02152631
- Add a new |isMainContent| boolean argument to HandleLoadStart and HandleLoadEnd (issue #166). - Only call HandleAddressChange and HandleTitleChange for the main content load (issue #166). - Pass the URL for new popup windows to HandleBeforeCreated (issue #5). - cefclient: Add a test for XMLHttpRequest. - cefclient: Size popup windows in ClientHandler::HandleBeforeCreated. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@162 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
19 lines
469 B
HTML
19 lines
469 B
HTML
<html>
|
|
<body>
|
|
<script language="JavaScript">
|
|
function execXMLHttpRequest()
|
|
{
|
|
xhr = new XMLHttpRequest();
|
|
xhr.open("GET","request",false);
|
|
xhr.setRequestHeader('My-Custom-Header', 'Some Value');
|
|
xhr.send();
|
|
document.getElementById('ta').value = "Request\n\n"+xhr.responseText;
|
|
}
|
|
</script>
|
|
<form>
|
|
<input type="button" onclick="execXMLHttpRequest();" value="Execute XMLHttpRequest">
|
|
<br/><textarea rows="10" cols="40" id="ta"></textarea>
|
|
</form>
|
|
</body>
|
|
</html>
|