request controller
This commit is contained in:
parent
274c2f436a
commit
a19578af35
3 changed files with 369 additions and 87 deletions
24
demos/test/app.html
Normal file
24
demos/test/app.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="../../build/js/jquery-1.4.js"></script>
|
||||
<script type="text/javascript" src="../../build/js/ox.js"></script>
|
||||
<script type="text/javascript" src="../../build/js/ox.ui.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var app = new Ox.App().launch();
|
||||
Ox.Request.send({
|
||||
url: "http://blackbook.local:8000/api/",
|
||||
data: {
|
||||
"function": "hello",
|
||||
data: JSON.stringify({key: "value"})
|
||||
},
|
||||
callback: function(data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue