mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-08 07:41:04 +01:00
f18083e5df
- Add unit tests for custom scheme handlers (issue #221). - Fix reversed enable/disable of stop and reload buttons in cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@222 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
20 lines
584 B
HTML
20 lines
584 B
HTML
<html>
|
|
<body>
|
|
<script language="JavaScript">
|
|
function execXMLHttpRequest()
|
|
{
|
|
xhr = new XMLHttpRequest();
|
|
xhr.open("GET",document.getElementById("url").value,false);
|
|
xhr.setRequestHeader('My-Custom-Header', 'Some Value');
|
|
xhr.send();
|
|
document.getElementById('ta').value = "Status Code: "+xhr.status+"\n\n"+xhr.responseText;
|
|
}
|
|
</script>
|
|
<form>
|
|
URL: <input type="text" id="url" value="http://tests/request">
|
|
<br/><input type="button" onclick="execXMLHttpRequest();" value="Execute XMLHttpRequest">
|
|
<br/><textarea rows="10" cols="40" id="ta"></textarea>
|
|
</form>
|
|
</body>
|
|
</html>
|