-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscript-alert-view.html
43 lines (35 loc) · 1.47 KB
/
script-alert-view.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
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="robots" content="index, follow, all"/>
<meta name="author" content="Alain Tiemblo"/>
<meta name="description" content="domajax is a free jQuery plugin that gives you tools to add ajax calls within your application, without a piece of javascript."/>
<meta name="keywords" content="domajax, ajax, jquery, plugin, javascript"/>
<title>data-script - Documentation - domajax - Use Ajax powerfulness without JavaScript</title>
<link href="../css/bootstrap.css" rel="stylesheet" media="screen">
<link href="../css/demo.css" rel="stylesheet" media="screen">
</head>
<body>
<p>
This simple example will process the code given inside <em>data-script-(event)</em> attributes.
</p>
<!-- demo starts here -->
<input
type="button"
value="Click me to receive some alerts..."
class="btn domajax click"
data-endpoint="script-alert-handler.php"
data-script-before="alert('Ajax call will begin.');"
data-script-success="alert('Ajax call has succeeded! Result is ' + response);"
/>
<!-- demo ends here -->
<div class="go-back-home">
<a href="http://domajax.fuz.org">Back to domajax's home</a>
</div>
<script src="../js/json2.js"></script>
<script src="../js/jquery.js"></script>
<script src="../js/bootstrap/bootstrap.js"></script>
<script src="../js/domajax/jquery.domajax.js"></script>
</body>
</html>