Libraryless. Click here for Pure Java version (4344L/25K).
1 | static JS js_uploadLiveValues() {
|
2 | ret jsRequiringJQuery([[ |
3 | function uploadLiveValues() {
|
4 | var entries = []; |
5 | $("[data-source][data-update-every]").each(function() {
|
6 | entries.push({
|
7 | "data-source": $(this).attr("data-source"),
|
8 | "data-update-every": $(this).attr("data-update-every"),
|
9 | "value": $(this).html() |
10 | }); |
11 | }); |
12 | var json = {"liveValues": entries};
|
13 | wsSend(JSON.stringify(json)); |
14 | } |
15 | ]]); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032619 |
| Snippet name: | js_uploadLiveValues |
| Eternal ID of this version: | #1032619/2 |
| Text MD5: | 7418c67183ab64731e09dc6c23c11ace |
| Transpilation MD5: | d3c1c7af8641020e6226f4db2cb29eac |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-29 18:18:04 |
| Source code size: | 487 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 358 / 463 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |