forked from joaool/MotherGithub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_JO2.html
35 lines (33 loc) · 1.02 KB
/
test_JO2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--
* http://download.dojotoolkit.org/release-1.2.3/dojo-release-1.2.3/dojox/form/tests/test_BusyButton.html
* http://www.sitepen.com/blog/2008/10/17/dojo-building-blocks-of-the-web/
*
* <!DOCTYPE html>
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test JO v2.0</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
request=$.ajax({
url: "http://localhost:3000/grid",
// url: "http://localhost:3000/dtTable",
type:"post",
data: '{"data": "TEST"}',
dataType: 'jsonp',//requires that the response be wrapped in some kind of callback function.
jsonpCallback: 'grid',
cache:false,
success: function(data) {
console.log("Success... :"+JSON.stringify(data));
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("errorThrown:"+errorThrown);
console.log("textStatus:"+textStatus);
}
});
console.log(document.title+"...... END..");
</script>
</head>
<body class="claro Mother">
</body>
</html>