1
0
Fork 0
forked from 0x2620/oxjs

request controller

This commit is contained in:
Rolux 2010-01-27 18:00:00 +05:30
commit a19578af35
3 changed files with 369 additions and 87 deletions

24
demos/test/app.html Normal file
View 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>