Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1032619 // js_uploadLiveValues

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4344L/25K).

static JS js_uploadLiveValues() {
  ret jsRequiringJQuery([[
    function uploadLiveValues() {
      var entries = [];
      $("[data-source][data-update-every]").each(function() {
        entries.push({
          "data-source": $(this).attr("data-source"),
          "data-update-every": $(this).attr("data-update-every"),
          "value": $(this).html()
        });
      });
      var json = {"liveValues": entries};
      wsSend(JSON.stringify(json));
    }
  ]]);
}

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: 138 / 200
Version history: 1 change(s)
Referenced in: [show references]