Skip to content

Instantly share code, notes, and snippets.

View jas1's full-sized avatar

Julio Spairani jas1

  • Argentina
View GitHub Profile
@jas1
jas1 / mycode.js
Created September 15, 2016 16:47 — forked from markheckmann/mycode.js
client/server interaction with shiny - part 3 (separate JS file)
// Execute function body when the HTML document is ready
$(document).ready(function() {
// javascript code to send data to shiny server
document.getElementById("mydiv").onclick = function() {
var number = Math.random();
Shiny.onInputChange("mydata", number);
};