-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample16.html
More file actions
77 lines (73 loc) · 2.88 KB
/
Copy pathexample16.html
File metadata and controls
77 lines (73 loc) · 2.88 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Server persistence and file upload | AltEditor examples</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.css"
/>
<link
rel="stylesheet"
href="https://cdn.datatables.net/2.3.8/css/dataTables.dataTables.css"
/>
<link
rel="stylesheet"
href="https://cdn.datatables.net/buttons/3.2.6/css/buttons.dataTables.css"
/>
<link
rel="stylesheet"
href="https://cdn.datatables.net/select/3.1.3/css/select.dataTables.css"
/>
<link rel="stylesheet" href="../../dist/dataTables.altEditor.css" />
<link rel="stylesheet" href="../examples.css" />
<script src="../theme.js"></script>
</head>
<body class="examples-page">
<main class="example-main">
<header class="example-header">
<nav aria-label="Example navigation">
<a href="../../index.html">← All examples</a>
· <a href="./example16.js">Configuration source</a> ·
<a
href="https://github.com/bensitu/DataTable-AltEditor/blob/develop/docs/examples.md"
>Example guide</a
>
</nav>
<p class="example-eyebrow">DataTable-AltEditor / Example 16</p>
<h1>Server persistence and file upload</h1>
<p>
Use the local Node.js server to save records and upload raw files.
Records survive page reloads until the server restarts. The server
assigns IDs, trims names, and rejects duplicate names.
</p>
<p>
Run <code>node example/16_server_files/server.mjs</code> from the
repository root, then open
<a href="http://127.0.0.1:8090/example/16_server_files/example16.html"
>the local page</a
>. GitHub Pages cannot run this server.
<a href="./server.mjs">Server source</a>
</p>
</header>
<div
class="example-table"
tabindex="0"
role="region"
aria-label="Editable table 1"
>
<table class="dataTable display" id="example"></table>
</div>
<p id="result" role="status" aria-live="polite">Ready.</p>
</main>
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script src="https://cdn.datatables.net/2.3.8/js/dataTables.js"></script>
<script src="https://cdn.datatables.net/buttons/3.2.6/js/dataTables.buttons.js"></script>
<script src="https://cdn.datatables.net/select/3.1.3/js/dataTables.select.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.js"></script>
<script src="../../dist/dataTables.altEditor.js"></script>
<script src="./example16.js"></script>
</body>
</html>